#include <elm/checksum/Fletcher.h>
Apply the Fletcher algorithm (http://en.wikipedia.org/wiki/Fletcher%27s_checksum) to compute a checksum.
Data are checksummed calling any one of the put() methods. When all data has been checksummed, the checksum value is returned by sum.
elm::checksum::Fletcher::Fletcher |
( |
void |
| ) |
|
elm::checksum::Fletcher::~Fletcher |
( |
void |
| ) |
|
|
virtual |
int elm::checksum::Fletcher::flush |
( |
void |
| ) |
|
|
virtual |
cstring elm::checksum::Fletcher::lastErrorMessage |
( |
void |
| ) |
|
|
virtual |
Fletcher& elm::checksum::Fletcher::operator<< |
( |
const char * |
str | ) |
|
template<class T >
Fletcher& elm::checksum::Fletcher::operator<< |
( |
const T & |
value | ) |
|
void elm::checksum::Fletcher::put |
( |
const void * |
block, |
|
|
int |
length |
|
) |
| |
Put a data block in the checksum.
- Parameters
-
block | Block address. |
length | Block length. |
References put().
void elm::checksum::Fletcher::put |
( |
const CString & |
str | ) |
|
Put a C string in the checksum.
- Parameters
-
References put().
void elm::checksum::Fletcher::put |
( |
const String & |
str | ) |
|
Put a string in the checksum.
- Parameters
-
References put().
t::uint32 elm::checksum::Fletcher::sum |
( |
void |
| ) |
|
Return the checksum.
- Parameters
-
checksum | Current checksum. |
int elm::checksum::Fletcher::write |
( |
const char * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files:
- include/elm/checksum/Fletcher.h
- src/checksum_Fletcher.cpp