libcommonc++  0.7
CRC32Checksum Class Reference

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

#include <CRC32Checksum.h++>

Inheritance diagram for CRC32Checksum:
Collaboration diagram for CRC32Checksum:

Public Member Functions

 CRC32Checksum ()
 Construct a new CRC32Checksum. More...
 
 ~CRC32Checksum ()
 Destructor. More...
 
void update (const byte_t *buf, size_t len)
 Update the checksum with more data. More...
 
uint32_t finish ()
 
void reset ()
 

Protected Attributes

uint32_t _sum
 The current checksum value. More...
 

Detailed Description

A class for generating CRC-32 checksums.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ CRC32Checksum()

Construct a new CRC32Checksum.

◆ ~CRC32Checksum()

Destructor.

Member Function Documentation

◆ finish()

uint32_t finish ( )

◆ reset()

void reset ( )

◆ update()

void update ( const byte_t buf,
size_t  len 
)
virtual

Update the checksum with more data.

Parameters
bufA pointer to the data.
lenThe length of the data.

Implements Checksum.

Member Data Documentation

◆ _sum

uint32_t _sum
protectedinherited

The current checksum value.


The documentation for this class was generated from the following files: