ICSharpCode::SharpZipLib::Checksums::IChecksum Interface Reference

Interface to compute a data checksum used by checked input/output streams. A data checksum can be updated by one byte or with a byte array. After each update the value of the current checksum can be returned by calling
getValue</code>. The complete checksum object can also be reset
            so it can be used again with new data.
More...

Inheritance diagram for ICSharpCode::SharpZipLib::Checksums::IChecksum:

ICSharpCode::SharpZipLib::Checksums::Adler32 ICSharpCode::SharpZipLib::Checksums::Crc32 List of all members.

Public Member Functions

void Reset ()
 Resets the data checksum as if no update was ever called.
void Update (int bval)
 Adds one byte to the data checksum.
void Update (byte[] buffer)
 Updates the data checksum with the bytes taken from the array.
void Update (byte[] buf, int off, int len)
 Adds the byte array to the data checksum.

Properties

long Value
 Returns the data checksum computed so far.

Detailed Description

Interface to compute a data checksum used by checked input/output streams. A data checksum can be updated by one byte or with a byte array. After each update the value of the current checksum can be returned by calling
getValue</code>. The complete checksum object can also be reset
            so it can be used again with new data.

Definition at line 48 of file IChecksum.cs.


Member Function Documentation

void ICSharpCode::SharpZipLib::Checksums::IChecksum::Reset  ) 
 

Resets the data checksum as if no update was ever called.

Implemented in ICSharpCode::SharpZipLib::Checksums::Adler32, and ICSharpCode::SharpZipLib::Checksums::Crc32.

void ICSharpCode::SharpZipLib::Checksums::IChecksum::Update byte[]  buf,
int  off,
int  len
 

Adds the byte array to the data checksum.

Parameters:
buf the buffer which contains the data
off the offset in the buffer where the data starts
len the length of the data

Implemented in ICSharpCode::SharpZipLib::Checksums::Adler32, and ICSharpCode::SharpZipLib::Checksums::Crc32.

void ICSharpCode::SharpZipLib::Checksums::IChecksum::Update byte[]  buffer  ) 
 

Updates the data checksum with the bytes taken from the array.

Parameters:
buffer buffer an array of bytes

Implemented in ICSharpCode::SharpZipLib::Checksums::Adler32, and ICSharpCode::SharpZipLib::Checksums::Crc32.

void ICSharpCode::SharpZipLib::Checksums::IChecksum::Update int  bval  ) 
 

Adds one byte to the data checksum.

Parameters:
bval the data value to add. The high byte of the int is ignored.

Implemented in ICSharpCode::SharpZipLib::Checksums::Adler32, and ICSharpCode::SharpZipLib::Checksums::Crc32.


Property Documentation

long ICSharpCode::SharpZipLib::Checksums::IChecksum::Value [get]
 

Returns the data checksum computed so far.

Implemented in ICSharpCode::SharpZipLib::Checksums::Adler32, and ICSharpCode::SharpZipLib::Checksums::Crc32.

Definition at line 54 of file IChecksum.cs.


The documentation for this interface was generated from the following file:
Generated on Fri Jun 23 21:50:05 2006 for OblivionModTranslator by  doxygen 1.4.6-NO