45 template <
typename TYPE>
46 static uint16_t
fletcher_16(TYPE &start, TYPE &end);
59 static uint16_t
fletcher_16(
const void *data,
size_t length);
72 return fletcher_16(
string.c_str(),
string.length());
static void unittest(void)
Unit test this class. Checksums can be verified against:http://www.nitrxgen.net/hashgen/.
Definition: checksum.cpp:104
static uint16_t fletcher_16(const std::string &string)
Compute the Fletcher 16-bit checksum of a string (see the template verison details)..
Definition: checksum.h:70
Holder class for checksums, Cyclic Redundency Checks, and so on.
Definition: checksum.h:28
static uint16_t fletcher_16(TYPE &start, TYPE &end)
Compute the Fletcher 16-bit checksum of 8-bit data. Unlike a "regular" 8-bit checsum, this manages position as well as content.
Definition: checksum.cpp:27
Definition: compress_integer_elias_delta_simd.c:23
static uint16_t fletcher_16_file(const std::string &filename)
Compute the Fletcher 16-bit checksum of a disk file.
Definition: checksum.cpp:94