ParametricCrc class
The table lookup implementation of all CRC routines. The parameters are:
- width: The bit count of the CRC value, eg 32, 16.
- polynomial: The generator polynomial in integer form, eg if the polynomial is x^4 + x + 1, its integer form is 0x13 (0b10011). The highest bit of this value can be left out too, eg 0x03.
- initialValue: The initial CRC value to start the calculation with.
- finalMask: The bit mask to XOR the (possibly reflected) final CRC value.
- inputReflected: Whether the input to CRC calculation should be reflected.
- outputReflected: Whether the CRC value is reflected before being XOR'd with finalMask.
- Inheritance
- Implementers
- Crc8Autosar
- Crc8Bluetooth
- Crc8Cdma2000
- Crc8Darc
- Crc8DvbS2
- Crc8GsmA
- Crc8GsmB
- Crc8I4321
- Crc8ICode
- Crc8Lte
- Crc8MaximDow
- Crc8MifareMad
- Crc8Nrsc5
- Crc8OpenSafety
- Crc8Rohc
- Crc8SaeJ1850
- Crc8SMBus
- Crc8Tech3250
- Crc8Wcdma
- Crc16Arc
- Crc16Cdma2000
- Crc16Cms
- Crc16Dds110
- Crc16DectR
- Crc16DectX
- Crc16Dnp
- Crc16En13757
- Crc16GeniBus
- Crc16Gsm
- Crc16Ibm3740
- Crc16IbmSdlc
- Crc16IsoIec144433A
- Crc16Kermit
- Crc16LJ1200
- Crc16MaximDow
- Crc16Mcrf4xx
- Crc16Modbus
- Crc16Nrsc5
- Crc16OpenSafetyA
- Crc16OpenSafetyB
- Crc16Profibus
- Crc16Riello
- Crc16SpiFujitsu
- Crc16T10Dif
- Crc16Teledisk
- Crc16Tms37157
- Crc16Umts
- Crc16Usb
- Crc16Xmodem
- Crc24Ble
- Crc24FlexRayA
- Crc24FlexRayB
- Crc24Interlaken
- Crc24LteA
- Crc24LteB
- Crc24OpenPgp
- Crc24Os9
- Crc32Aixm
- Crc32Autosar
- Crc32Base91D
- Crc32Bzip2
- Crc32CDRomEdc
- Crc32Cksum
- Crc32Iscsi
- Crc32IsoHdlc
- Crc32JamCrc
- Crc32Mpeg2
- Crc32Xfer
- Crc40Gsm
- Crc64Ecma182
- Crc64GoIso
- Crc64WE
- Crc64Xz
Constructors
- ParametricCrc(int width, Comparable _polynomial, dynamic _initialValue, dynamic _finalMask, {bool inputReflected = true, bool outputReflected = true})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthInBits → int
-
Returns the length in bits of returned CRC values.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
Stream< List< stream) → Stream<int> >CrcValue> -
Transforms the provided
stream
.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>
view of this stream transformer.inherited -
convert(
List< int> input) → CrcValue -
Converts
input
and returns the result of the conversion. -
fuse<
TT> (Converter< CrcValue, TT> other) → Converter<List< int> , TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< CrcValue> outputSink) → ParametricCrcSink - Starts a chunked conversion.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited