C# 클래스 GSF.IO.Checksums.CrcCCITT

Generates a 16-bit CRC-CCITT checksum.
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)
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
CrcCCITT ( ) : System

Creates a new instance of the CrcCCITT class. The checksum starts off with a value of 0xFFFF.

Reset ( ) : void

Resets the CRC-CCITT data checksum as if no update was ever called.

Update ( byte value ) : void

Updates the checksum with the int bval.

Update ( byte buffer, int offset, int count ) : void

Adds the byte array to the data checksum.

메소드 상세

CrcCCITT() 공개 메소드

Creates a new instance of the CrcCCITT class. The checksum starts off with a value of 0xFFFF.
public CrcCCITT ( ) : System
리턴 System

Reset() 공개 메소드

Resets the CRC-CCITT data checksum as if no update was ever called.
public Reset ( ) : void
리턴 void

Update() 공개 메소드

Updates the checksum with the int bval.
public Update ( byte value ) : void
value byte The value to use for the update.
리턴 void

Update() 공개 메소드

Adds the byte array to the data checksum.
public Update ( byte buffer, int offset, int count ) : void
buffer byte The buffer which contains the data
offset int The offset in the buffer where the data starts
count int The number of data bytes to update the CRC with.
리턴 void