CRC16XModem class

CRC-CCITT (XModem) CRC16_XMODEM:多项式x16+x12+x5+1(0x1021),初始值0x0000,低位在后,高位在前,结果与0x0000异或

Inheritance

Constructors

CRC16XModem()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wCRCin int
CRC16 Checksum 结果值
getter/setter pairinherited

Methods

getBinaryValue() String
Returns the current checksum binary value.
inherited
getHexValue([bool isPadding = false]) String
获取16进制的CRC16值 param isPadding 不足4位时,是否填充0以满足位数 return 16进制的CRC16值,4位
inherited
getValue() int
Returns the current checksum value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the checksum to its initial value.
inherited
toString() String
A string representation of this object.
inherited
update(Uint8List ints, [int off = 0, int? len]) → void
使用指定的字节数组更新当前校验和
override
updateInt(int b) → void
使用指定字节更新当前校验和
override
updateList(List<int> ints, [int off = 0, int? len]) → void
使用指定的字节数组更新当前校验和
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited