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

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<int>> stream) Stream<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 with other.
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