Crc16 Class

Generates a byte-wise 16-bit CRC calculation.

Definition

Namespace: Gemstone.IO.Checksums
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
public sealed class Crc16
Inheritance
Object    Crc16

Remarks

2-byte (16-bit) CRC: The generating polynomial is

16 15 2 1

G(X) = X + X + X + X

Constructors

Crc16 Creates a new instance of the Crc16 class. The checksum starts off with a value of 0x0000.
Crc16(ChecksumType) Creates a new instance of the Crc16 class.

Properties

Value Returns the CRC-16 data checksum computed so far.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Reset Resets the CRC-16 data checksum as if no update was ever called.
Reset(ChecksumType) Resets the CRC-16 data checksum as if no update was ever called.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Update(Byte) Updates the checksum with the byte value.
Update(Byte) Updates the checksum with the bytes taken from the array.
Update(Byte, Int32, Int32) Adds the byte array to the data checksum.

See Also