NBit Bit Manipulation Library

CrcFormat Enumeration

Specifies the format of the CRC.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags> _
Public Enum CrcFormat
[C#]
[Flags]
public enum CrcFormat

Members

Member Name Description Value
LsbFirst The least significant bit of each byte is sent through the CRC first. 1
MsbFirst The most significant bit of each byte is sent through the CRC first. 2
KoopmanPolynomial The constant term and the highest order polynomial term are always one for CRCs. A 16-bit CRC, for example, will always have x^16 and x^0 terms. It's a matter of convention which is left out, and more commonly it is the highest-order term. If the polynomial is in Koopman notation, the lowest-order term is dropped instead. This corresponds to "Reversed Reciprocal" entries on Wikipedia's CRC page. 4
ReversedPolynomial The order of bits in the CRC polynomial is reversed. Higher order terms correspond to less significant bits. This corresponds to "Reversed" entries on Wikipedia's CRC page. 8

Requirements

Namespace: NBit

Assembly: NBit (in NBit.dll)

See Also

NBit Namespace