C# Class GSF.IO.Checksums.Crc32

Generates a byte-wise 32-bit CRC calculation.
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ComputeCrc32 ( uint oldCrc, byte value ) : uint

Method Details

Reset() public méthode

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

Update() public méthode

Updates the checksum with the bytes taken from the array.
public Update ( byte buffer ) : void
buffer byte buffer an array of bytes
Résultat void

Update() public méthode

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.
Résultat void

Update() public méthode

Updates the checksum with the integer value.
public Update ( int value ) : void
value int The value to use for the update.
Résultat void