SoftLRCCalculateAcc 方法 (Byte, Int32, Int32) |
根据传入的原始字节数组,计算和校验信息,可以指定起始的偏移地址和尾部的字节数量信息
Calculate and check the information according to the incoming original byte array, you can specify the starting offset address and the number of bytes at the end
命名空间:
HslCommunication.Serial
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static int CalculateAcc(
byte[] buffer,
int headCount,
int lastCount
)
Public Shared Function CalculateAcc (
buffer As Byte(),
headCount As Integer,
lastCount As Integer
) As Integer
public:
static int CalculateAcc(
array<unsigned char>^ buffer,
int headCount,
int lastCount
)
static member CalculateAcc :
buffer : byte[] *
headCount : int *
lastCount : int -> int
参数
- buffer
- 类型:SystemByte
原始字节数组信息 - headCount
- 类型:SystemInt32
起始的偏移地址信息 - lastCount
- 类型:SystemInt32
尾部的字节数量信息
返回值
类型:
Int32和校验的结果
参见