OSTC Companion
3.0
Companion sofftware for H&W dive computers
|
Addler checksum, on 2xN bits. More...
#include <Adler16.h>
Public Member Functions | |
AdlerTemplate (T a, T b) | |
Initialize checksum with a given seed. More... | |
void | reset (T a, T b) |
Re-initialize checksum with a given seed. More... | |
void | add (int c) |
Hash a single byte/word. More... | |
void | add (const void *buffer, size_t size) |
Hash a block of bytes. More... | |
void | add (const QByteArray &buffer) |
Hash all the byte/words for a Qt buffer. More... | |
T | a () const |
Returns hash result. More... | |
T | b () const |
bool | check (T a, T b) |
Addler checksum, on 2xN bits.
|
inline |
Initialize checksum with a given seed.
|
inline |
Returns hash result.
|
inline |
Hash a single byte/word.
|
inline |
Hash a block of bytes.
|
inline |
Hash all the byte/words for a Qt buffer.
|
inline |
|
inline |
Check Hash result.
|
inline |
Re-initialize checksum with a given seed.