using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SLH.SSDMS.Common { public class checkUtil { /// /// 异或校验 /// /// /// public static int BCC(byte[] data) { int temp = 0; for (int index = 0; index < data.Length; index++) { temp = temp ^ data[index]; } return temp; } } }