Click or drag to resize

CrcCCITT Class

Generates a 16-bit CRC-CCITT checksum.
Inheritance Hierarchy
SystemObject
  GSF.IO.ChecksumsCrcCCITT

Namespace: GSF.IO.Checksums
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public sealed class CrcCCITT
View Source

The CrcCCITT type exposes the following members.

Constructors
 NameDescription
Public methodCrcCCITT Creates a new instance of the CrcCCITT class. The checksum starts off with a value of 0xFFFF.
Top
Properties
 NameDescription
Public propertyValue Returns the CRCCCITT data checksum computed so far.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodReset Resets the CRC-CCITT data checksum as if no update was ever called.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdate(Byte) Updates the checksum with the int bval.
Public methodUpdate(Byte) Updates the checksum with the bytes taken from the array.
Public methodUpdate(Byte, Int32, Int32) Adds the byte array to the data checksum.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This is a table based 16-bit CRC popular for modem protocols defined for use by the Consultative Committee on International Telegraphy and Telephony (CCITT)
See Also