DotZLib::AdlerChecksum Class Reference

Implements a checksum generator that computes the Adler checksum on data. More...

Inherits DotZLib::ChecksumGeneratorBase.

Inheritance diagram for DotZLib::AdlerChecksum:

Inheritance graph
[legend]
Collaboration diagram for DotZLib::AdlerChecksum:

Collaboration graph
[legend]

Public Member Functions

 AdlerChecksum ()
 Initializes a new instance of the Adler checksum generator.
 AdlerChecksum (uint initialValue)
 Initializes a new instance of the Adler checksum generator with a specified value.
override void Update (byte[] data, int offset, int count)
 Updates the current checksum with part of an array of bytes.

Private Member Functions

static uint adler32 (uint adler, int data, uint length)

Detailed Description

Implements a checksum generator that computes the Adler checksum on data.

Definition at line 155 of file ChecksumImpl.cs.


Constructor & Destructor Documentation

DotZLib::AdlerChecksum::AdlerChecksum  )  [inline]
 

Initializes a new instance of the Adler checksum generator.

Definition at line 167 of file ChecksumImpl.cs.

DotZLib::AdlerChecksum::AdlerChecksum uint  initialValue  )  [inline]
 

Initializes a new instance of the Adler checksum generator with a specified value.

Parameters:
initialValue The value to set the current checksum to

Definition at line 173 of file ChecksumImpl.cs.


Member Function Documentation

static uint DotZLib::AdlerChecksum::adler32 uint  adler,
int  data,
uint  length
[private]
 

override void DotZLib::AdlerChecksum::Update byte[]  data,
int  offset,
int  count
[inline, virtual]
 

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
NullReferenceException data is a null reference
ArgumentOutOfRangeException Offset or count is negative.

Implements DotZLib::ChecksumGeneratorBase.

Definition at line 184 of file ChecksumImpl.cs.

References adler32().

Referenced by DotZLibTests::ChecksumTests::Adler_Data().


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