CRC16X25 class

CRC16_X25:多项式x16+x12+x5+1(0x1021),初始值0xffff,低位在前,高位在后,结果与0xFFFF异或 0x8408是0x1021按位颠倒后的结果。

Inheritance

Constructors

CRC16X25()

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.
override
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