点击或拖拽改变大小

SoftLRCCalculateAccAndCheck 方法

计算数据的和校验,并且和当前已经存在的和校验信息进行匹配,返回是否匹配成功
Calculate the sum check of the data, and match it with the existing sum check information, and return whether the match is successful

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static bool CalculateAccAndCheck(
	byte[] buffer,
	int headCount,
	int lastCount
)

参数

buffer
类型:SystemByte
原始字节数组信息
headCount
类型:SystemInt32
起始的偏移地址信息
lastCount
类型:SystemInt32
尾部的字节数量信息

返回值

类型:Boolean
和校验是否检查通过
参见