Class Crc16
A CCITT-style CRC-16 calculator used by the CHD format.
public static class Crc16
- Inheritance
-
Crc16
- Inherited Members
Methods
Compute(byte[], int, int)
Computes the CRC-16 checksum of a byte array segment.
public static ushort Compute(byte[] data, int offset, int length)
Parameters
databyte[]The source byte array.
offsetintThe starting offset within the array.
lengthintThe number of bytes to include.
Returns
- ushort
The 16-bit CRC value.
Compute(ReadOnlySpan<byte>)
Computes the CRC-16 checksum of a byte span.
public static ushort Compute(ReadOnlySpan<byte> data)
Parameters
dataReadOnlySpan<byte>The data to checksum.
Returns
- ushort
The 16-bit CRC value.