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 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static bool CalculateAccAndCheck(
byte[] buffer,
int headCount,
int lastCount
)
Public Shared Function CalculateAccAndCheck (
buffer As Byte(),
headCount As Integer,
lastCount As Integer
) As Boolean
public:
static bool CalculateAccAndCheck(
array<unsigned char>^ buffer,
int headCount,
int lastCount
)
static member CalculateAccAndCheck :
buffer : byte[] *
headCount : int *
lastCount : int -> bool
参数
- buffer
- 类型:SystemByte
原始字节数组信息 - headCount
- 类型:SystemInt32
起始的偏移地址信息 - lastCount
- 类型:SystemInt32
尾部的字节数量信息
返回值
类型:
Boolean和校验是否检查通过
参见