feisty meow concerns codebase
2.140
|
#include <checksums.h>
Static Public Member Functions | |
static basis::abyte | byte_checksum (const basis::abyte *data, int length) |
simple byte-sized checksum based on additive roll-over. More... | |
static basis::un_int | short_checksum (const basis::abyte *data, int length) |
simple shorty checksum based on additive roll-over. More... | |
static basis::un_short | fletcher_checksum (const basis::abyte *data, int length) |
A positionally computed error detection value. More... | |
static basis::un_short | rolling_fletcher_checksum (basis::un_short previous, const basis::abyte *data, int len) |
Fletcher checksums applied to streaming data. More... | |
static unsigned int | bizarre_checksum (const basis::abyte *data, int length) |
A different type of checksum with somewhat unknown properties. More... | |
static basis::un_int | hash_bytes (const void *key_data, int key_length) |
returns a value that can be used for indexing into a hash table. More... | |
Definition at line 26 of file checksums.h.
|
static |
A different type of checksum with somewhat unknown properties.
It attempts to be incorporate positioning of the bytes.
Definition at line 25 of file checksums.cpp.
References structures::HIGHEST_MOD_VALUE.
|
static |
simple byte-sized checksum based on additive roll-over.
Definition at line 60 of file checksums.cpp.
|
static |
A positionally computed error detection value.
Definition at line 35 of file checksums.cpp.
|
static |
returns a value that can be used for indexing into a hash table.
the returned value is loosely based on the "key_data" and the "key_length" we are provided with.
Definition at line 74 of file checksums.cpp.
Referenced by structures::rotating_byte_hasher::hash().
|
static |
Fletcher checksums applied to streaming data.
this is not strictly a fletcher checksum, but it uses the normal fletcher checksum on the specified data and XORs it with the "previous" value of the checksum. this leads to a regenerable number that should always be the same if done on the same data using the same chunking factor (the "len"), although of course the last piece of data does not have to be "len" bytes.
Definition at line 56 of file checksums.cpp.
|
static |
simple shorty checksum based on additive roll-over.
Definition at line 67 of file checksums.cpp.