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

Generates a byte-wise 32-bit CRC calculation.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Reset ( ) : void

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

Update ( byte buffer ) : void

Updates the checksum with the bytes taken from the array.

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

Adds the byte array to the data checksum.

Update ( int value ) : void

Updates the checksum with the integer value.

비공개 메소드들

메소드 설명
ComputeCrc32 ( uint oldCrc, byte value ) : uint

메소드 상세

Reset() 공개 메소드

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

Update() 공개 메소드

Updates the checksum with the bytes taken from the array.
public Update ( byte buffer ) : void
buffer byte buffer an array of bytes
리턴 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

Update() 공개 메소드

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