NBit Bit Manipulation Library

Crc.Custom(Int32, UInt32, CrcFormat, UInt32, UInt32) Method

Creates a custom CRC calculator.

[Visual Basic]
Public Overloads Shared Sub Custom( _
   ByVal bits As Integer, _
   ByVal polynomial As UInt32, _
   ByVal format As CrcFormat, _
   ByVal preset As UInt32, _
   ByVal postinvert As UInt32 _
)
[C#]
public static Crc Custom(
   int bits,
   uint polynomial,
   CrcFormat format,
   uint preset,
   uint postinvert
);

Parameters

bits
The number of bits in the CRC.
polynomial
The CRC polynomial.
format
The CRC format.
preset
The initial value of the CRC.
postinvert
A mask of bits to flip when determining the final value.

Return Value

The CRC calculator.

See Also

Crc Class | NBit Namespace | Crc.Custom Overload List