srecord
1.65.0
|
The adler16 class is used to represent the running value of a 16-bit Adler checksum of series of bytes. More...
#include <adler16.h>
Public Member Functions | |
virtual | ~adler16 () |
The destructor. More... | |
adler16 () | |
The default constructor. More... | |
adler16 (const adler16 &) | |
The copy constructor. More... | |
adler16 & | operator= (const adler16 &) |
The assignment operator. More... | |
unsigned short | get () const |
The get method is used to obtain the running value of the checksum. More... | |
void | next (unsigned char) |
The next method is used to advance the state by one byte. More... | |
void | nextbuf (const void *, size_t) |
The nextbuf method is used to advance the state by a series of bytes. More... | |
The adler16 class is used to represent the running value of a 16-bit Adler checksum of series of bytes.
(Using an algorith analogous to Adler-32, but using mod 251 instead of 65521).
|
virtual |
The destructor.
srecord::adler16::adler16 | ( | ) |
The default constructor.
srecord::adler16::adler16 | ( | const adler16 & | ) |
The copy constructor.
unsigned short srecord::adler16::get | ( | ) | const |
The get method is used to obtain the running value of the checksum.
void srecord::adler16::next | ( | unsigned char | ) |
The next method is used to advance the state by one byte.
void srecord::adler16::nextbuf | ( | const void * | , |
size_t | |||
) |
The nextbuf method is used to advance the state by a series of bytes.