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

Calculates double-word length (32-bit) XOR-based check-sum on specified portion of a buffer.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Reset ( ) : void

Resets the checksum to the initial value.

Update ( byte buffer ) : void

Updates the checksum with an array of bytes.

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

Updates the checksum with the bytes taken from the array.

Update ( uint value ) : void

Updates the checksum with a uint value.

Xor32 ( ) : System

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

Описание методов

Reset() публичный Метод

Resets the checksum to the initial value.
public Reset ( ) : void
Результат void

Update() публичный Метод

Updates the checksum with an array of bytes.
public Update ( byte buffer ) : void
buffer byte /// The source of the data to update with. ///
Результат void

Update() публичный Метод

Updates the checksum with the bytes taken from the array.
public Update ( byte buffer, int offset, int count ) : void
buffer byte /// an array of bytes ///
offset int /// the start of the data used for this update ///
count int /// the number of bytes to use for this update ///
Результат void

Update() публичный Метод

Updates the checksum with a uint value.
public Update ( uint value ) : void
value uint The value to use for the update.
Результат void

Xor32() публичный Метод

Creates a new instance of the Xor32Bit class. The checksum starts off with a value of 0.
public Xor32 ( ) : System
Результат System