|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_CHECKSUM_FLETCHER_H
23 #define ELM_CHECKSUM_FLETCHER_H
25 #include <elm/types.h>
26 #include <elm/io/InStream.h>
27 #include <elm/io/OutStream.h>
29 namespace elm {
namespace checksum {
38 void put(
const void *buffer,
int length);
44 {
put(
str);
return *
this; }
46 {
put(
str);
return *
this; }
48 {
put(&
value,
sizeof(T));
return *
this; }
51 virtual int write(
const char *buffer,
int size);
52 virtual int flush(
void);
60 inline void shuffle(
void);
61 inline void add(
void);
66 #endif // ELM_CHECKSUM_FLETCHER_H
t::uint32 sum(void)
Definition: checksum_Fletcher.cpp:100
Fletcher & operator<<(const char *str)
Definition: Fletcher.h:41
virtual int flush(void)
Definition: checksum_Fletcher.cpp:150
unsigned short uint16
Definition: arch.h:29
virtual int write(const char *buffer, int size)
Definition: checksum_Fletcher.cpp:142
Fletcher & operator<<(const T &value)
Definition: Fletcher.h:47
typename type_info< T >::in_t in
Definition: type_info.h:283
Fletcher(void)
Definition: checksum_Fletcher.cpp:45
virtual cstring lastErrorMessage(void)
Definition: checksum_Fletcher.cpp:157
virtual ~Fletcher(void)
Definition: checksum_Fletcher.cpp:164
Fletcher & operator<<(const CString &str)
Definition: Fletcher.h:43
void put(io::InStream &in)
Definition: checksum_Fletcher.cpp:78
unsigned int uint32
Definition: arch.h:31
Fletcher & operator<<(const String &str)
Definition: Fletcher.h:45
Definition: Fletcher.h:32
string str(const char *s)
Definition: String.h:150
Definition: InStream.h:29