DotZLib::ChecksumGenerator Interface Reference

Declares methods and properties that enables a running checksum to be calculated. More...

Inherited by DotZLib::ChecksumGeneratorBase.

Inheritance diagram for DotZLib::ChecksumGenerator:

Inheritance graph
[legend]

Public Member Functions

void Reset ()
 Clears the current checksum to 0.
void Update (byte[] data)
 Updates the current checksum with an array of bytes.
void Update (byte[] data, int offset, int count)
 Updates the current checksum with part of an array of bytes.
void Update (string data)
 Updates the current checksum with the data from a string.
void Update (string data, Encoding encoding)
 Updates the current checksum with the data from a string, using a specific encoding.

Properties

uint Value
 Gets the current value of the checksum.

Detailed Description

Declares methods and properties that enables a running checksum to be calculated.

Definition at line 114 of file DotZLib.cs.


Member Function Documentation

void DotZLib::ChecksumGenerator::Reset  ) 
 

Clears the current checksum to 0.

Implemented in DotZLib::ChecksumGeneratorBase.

void DotZLib::ChecksumGenerator::Update string  data,
Encoding  encoding
 

Updates the current checksum with the data from a string, using a specific encoding.

Parameters:
data The string to update the checksum with
encoding The encoding to use

Implemented in DotZLib::ChecksumGeneratorBase.

void DotZLib::ChecksumGenerator::Update string  data  ) 
 

Updates the current checksum with the data from a string.

Parameters:
data The string to update the checksum with
The characters in the string are converted by the UTF-8 encoding

Implemented in DotZLib::ChecksumGeneratorBase.

void DotZLib::ChecksumGenerator::Update byte[]  data,
int  offset,
int  count
 

Updates the current checksum with part of an array of bytes.

Parameters:
data The data to update the checksum with
offset Where in data to start updating
count The number of bytes from data to use
Exceptions:
ArgumentException The sum of offset and count is larger than the length of data
ArgumentNullException data is a null reference
ArgumentOutOfRangeException Offset or count is negative.

Implemented in DotZLib::ChecksumGeneratorBase, DotZLib::CRC32Checksum, and DotZLib::AdlerChecksum.

void DotZLib::ChecksumGenerator::Update byte[]  data  ) 
 

Updates the current checksum with an array of bytes.

Parameters:
data The data to update the checksum with

Implemented in DotZLib::ChecksumGeneratorBase.


Property Documentation

uint DotZLib::ChecksumGenerator::Value [get]
 

Gets the current value of the checksum.

Implemented in DotZLib::ChecksumGeneratorBase.

Definition at line 119 of file DotZLib.cs.


The documentation for this interface was generated from the following file:
Generated on Fri Apr 14 23:25:17 2006 for minix by  doxygen 1.4.6