CRC32Checksum Class Reference

A class for generating CRC-32 checksums. More...

#include <CRC32Checksum.h++>

Inheritance diagram for CRC32Checksum:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CRC32Checksum () throw ()
 Construct a new CRC32Checksum.
 ~CRC32Checksum () throw ()
 Destructor.
void update (const byte_t *buf, size_t len) throw ()
 Update the checksum with more data.
uint32_t finish () throw ()
 Finish generating the checksum.
void reset () throw ()
 Reset the object for a new checksum.

Protected Attributes

uint32_t _sum
 The current checksum value.

Detailed Description

A class for generating CRC-32 checksums.

Author:
Mark Lindner

Constructor & Destructor Documentation

CRC32Checksum (  )  throw ()

Construct a new CRC32Checksum.

~CRC32Checksum (  )  throw ()

Destructor.


Member Function Documentation

uint32_t finish (  )  throw ()

Finish generating the checksum.

Returns:
The checksum.

Reimplemented from Checksum.

void reset (  )  throw ()

Reset the object for a new checksum.

Reimplemented from Checksum.

void update ( const byte_t buf,
size_t  len 
) throw () [virtual]

Update the checksum with more data.

Parameters:
buf A pointer to the data.
len The length of the data.

Implements Checksum.


Member Data Documentation

uint32_t _sum [protected, inherited]

The current checksum value.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3