Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ChecksumCalculator Class Reference

#include <Checksum.h>

List of all members.


Detailed Description

The ChecksumCalculator class provides functionality for checksum generation, such as CRC32.

Author:
Thomas Jacob

Definition at line 20 of file Checksum.h.

Public Member Functions

 ChecksumCalculator ()
 Creates a new checksum calculator.

unsigned long GetCrc32 (const char *buffer, int len)
 Calculates the CRC32 from a given buffer.

 ~ChecksumCalculator ()
 Destroys the checksum calculator.


Private Attributes

unsigned long Crc32Table [256]
 The CRC32 calculation table.


Constructor & Destructor Documentation

ChecksumCalculator  ) 
 

Creates a new checksum calculator.

~ChecksumCalculator  ) 
 

Destroys the checksum calculator.


Member Function Documentation

unsigned long GetCrc32 const char *  buffer,
int  len
 

Calculates the CRC32 from a given buffer.

Parameters:
buffer The buffer to calculate the checksum on.
len The length of the buffer in bytes.
Returns:
The CRC32 of the buffer.


Member Data Documentation

unsigned long Crc32Table[256] [private]
 

The CRC32 calculation table.

Definition at line 27 of file Checksum.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 3 00:23:39 2006 for ToolBox by doxygen 1.3.6