点击或拖拽改变大小

SoftLRC 类

用于LRC验证的类,提供了标准的验证方法
The class used for LRC verification provides a standard verification method
继承层次
SystemObject
  HslCommunication.SerialSoftLRC

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class SoftLRC

SoftLRC 类型公开以下成员。

构造函数
  名称说明
公共方法SoftLRC
初始化 SoftLRC 类的一个新实例
Top
方法
  名称说明
公共方法静态成员CalculateAcc(Byte)
根据传入的原始字节数组,计算和校验信息,可以指定起始的偏移地址和尾部的字节数量信息
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
公共方法静态成员CalculateAcc(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
公共方法静态成员CalculateAccAndCheck
计算数据的和校验,并且和当前已经存在的和校验信息进行匹配,返回是否匹配成功
Calculate the sum check of the data, and match it with the existing sum check information, and return whether the match is successful
公共方法静态成员CalculateAccAndFill
计算数据的和校验,并且输入和校验的值信息
Calculate the sum check of the data, and enter the value information of the sum check
公共方法静态成员CheckLRC
检查数据是否符合LRC的验证
Check data for compliance with LRC validation
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
公共方法静态成员LRC
获取对应的数据的LRC校验码
Class for LRC validation that provides a standard validation method
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见