C# Класс GSF.IO.Checksums.Crc32

Generates a byte-wise 32-bit CRC calculation.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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