|
libcommonc++
0.7
|
A base class for checksum generators. More...
#include <Checksum.h++>

Public Member Functions | |
| virtual | ~Checksum () |
| Destructor. More... | |
| virtual void | update (const byte_t *buf, size_t len)=0 |
| Update the checksum with more data. More... | |
| uint32_t | finish () |
| Finish generating the checksum. More... | |
| void | reset () |
| Reset the object for a new checksum. More... | |
Protected Member Functions | |
| Checksum () | |
| Constructor. More... | |
Protected Attributes | |
| uint32_t | _sum |
| The current checksum value. More... | |
A base class for checksum generators.
|
virtual |
Destructor.
|
protected |
Constructor.
| uint32_t finish | ( | ) |
Finish generating the checksum.
| void reset | ( | ) |
Reset the object for a new checksum.
|
pure virtual |
Update the checksum with more data.
| buf | A pointer to the data. |
| len | The length of the data. |
Implemented in CRC32Checksum.
|
protected |
The current checksum value.