C# Class GSF.IO.Checksums.Xor64

Calculates quad-word length (64-bit) XOR-based check-sum on specified portion of a buffer.
Mostrar archivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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 ( ulong value ) : void

Updates the checksum with a ulong value.

Xor64 ( ) : System

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

Method Details

Reset() public method

Resets the checksum to the initial value.
public Reset ( ) : void
return void

Update() public method

Updates the checksum with an array of bytes.
public Update ( byte buffer ) : void
buffer byte /// The source of the data to update with. ///
return void

Update() public method

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 ///
return void

Update() public method

Updates the checksum with a ulong value.
public Update ( ulong value ) : void
value ulong The value to use for the update.
return void

Xor64() public method

Creates a new instance of the Xor64Bit class. The checksum starts off with a value of 0.
public Xor64 ( ) : System
return System