Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/checksum/Fletcher.h>
Public Member Functions | |
Fletcher (void) | |
virtual | ~Fletcher (void) |
t::uint32 | sum (void) |
void | put (io::InStream &in) |
void | put (const void *buffer, int length) |
void | put (const CString &str) |
void | put (const String &str) |
Fletcher & | operator<< (const char *str) |
Fletcher & | operator<< (const CString &str) |
Fletcher & | operator<< (const String &str) |
template<class T > | |
Fletcher & | operator<< (const T &value) |
virtual int | write (const char *buffer, int size) |
virtual int | flush (void) |
virtual cstring | lastErrorMessage (void) |
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.
|
virtual |
|
inline |
References Fletcher::put(), and elm::str().
References Fletcher::put(), and elm::str().
References Fletcher::put(), and elm::str().
|
inline |
References Fletcher::put().
Put a C string in the checksum.
str | C string to put in. |
References Fletcher::put(), and elm::str().
Put a string in the checksum.
str | String to put in. |
References Fletcher::put(), and elm::str().
Put a data block in the checksum.
block | Block address. |
length | Block length. |
References Fletcher::put().
void put | ( | io::InStream & | in | ) |
Checksum the given stream.
in | Stream to checksum. |
Referenced by Fletcher::operator<<(), Fletcher::put(), and Fletcher::write().
|
virtual |
References Fletcher::put().