CRC class abstract

Cyclic Redundancy Check, CRC

Constructors

CRC.new(String name, int width, int poly, int init, bool refIn, bool refOut, int xorOut, [bool mapping = false])
Create a CRC with arguments.
factory
CRC.crc4ITU([bool mapping = false])
CRC-4/ITU
factory
CRC.crc5EPC([bool mapping = false])
CRC-5/EPC
factory
CRC.crc5ITU([bool mapping = false])
CRC-5/ITU
factory
CRC.crc5USB([bool mapping = false])
CRC-5/USB
factory
CRC.crc6ITU([bool mapping = false])
CRC-6/ITU
factory
CRC.crc7MMC([bool mapping = false])
CRC-7/MMC
factory
CRC.crc8([bool mapping = false])
CRC-8
factory
CRC.crc8ITU([bool mapping = false])
CRC-8/ITU
factory
CRC.crc8MAXIM([bool mapping = false])
CRC-8/MAXIM
factory
CRC.crc8ROHC([bool mapping = false])
CRC-8/ROHC
factory
CRC.crc16([bool mapping = false])
CRC-16
factory
CRC.crc16CCITT([bool mapping = false])
CRC-16/CCITT
factory
CRC.crc16CCITTFALSE([bool mapping = false])
CRC-16/CCITT-FALSE
factory
CRC.crc16DNP([bool mapping = false])
CRC-16/DNP
factory
CRC.crc16MAXIM([bool mapping = false])
CRC-16/MAXIM
factory
CRC.crc16MODBUS([bool mapping = false])
CRC-16/MODBUS
factory
CRC.crc16USB([bool mapping = false])
CRC-16/USB
factory
CRC.crc16X25([bool mapping = false])
CRC-16/X25
factory
CRC.crc16XMODEM([bool mapping = false])
CRC-16/XMODEM
factory
CRC.crc32([bool mapping = false])
CRC-32
factory
CRC.crc32MPEG2([bool mapping = false])
CRC-32/MPEG-2
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
init int
init
no setter
name String
name
no setter
poly int
poly
no setter
refIn bool
refIn
no setter
refOut bool
refOut
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
width
no setter
xorOut int
xorOut
no setter

Methods

calculate(List<int> data) int
Caculate data's crc.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verify(List<int> data, int crc) bool
Verify weather data matches the crc.

Operators

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