19 #ifndef SRECORD_FLETCHER16_H
20 #define SRECORD_FLETCHER16_H
83 fletcher16(
unsigned char sum1 = 0,
unsigned char sum2 = 0,
100 unsigned short get()
const;
115 void nextbuf(
const void *data,
size_t data_size);
The fletcher16 class is used to represent the running value of a 16-bit Fletcher's Checksum of series...
fletcher16 & operator=(const fletcher16 &)
The assignment operator.
virtual ~fletcher16()
The destructor.
fletcher16(unsigned char sum1=0, unsigned char sum2=0, int answer=-1, endian_t end=endian_little)
The default constructor.
fletcher16(const fletcher16 &)
The copy constructor.
void next(unsigned char)
The next method is used to advance the state by one byte.
unsigned short get() const
The get method is used to obtain the running value of the cyclic redundancy check.
void nextbuf(const void *data, size_t data_size)
The nextbuf method is used to advance the state by a series of bytes.