NBit Bit Manipulation Library

Crc.Compute(Byte, Int32, Int32, Int32) Method

Computes a CRC from a byte array.

[Visual Basic]
Public Overloads Sub Compute( _
   ByVal buffer As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer, _
   ByVal bits As Integer _
)
[C#]
public uint Compute(
   byte[] buffer,
   int offset,
   int count,
   int bits
);

Parameters

buffer
The bytes to compute the CRC from.
offset
The index of the first byte in buffer to read.
count
The number of bytes to read.
bits
The number of bits of the byte to use.

Return Value

The final CRC.

See Also

Crc Class | NBit Namespace | Crc.Compute Overload List