|
xxHash 0.8.2
Extremely fast non-cryptographic hash function
|
Data Structures | |
| struct | XXH64_canonical_t |
| Canonical (big endian) representation of XXH64_hash_t. More... | |
Typedefs | |
| typedef struct XXH64_state_s | XXH64_state_t |
| The opaque state struct for the XXH64 streaming API. | |
Functions | |
| XXH64_hash_t | XXH64 (const void *input, size_t length, XXH64_hash_t seed) |
Calculates the 64-bit hash of input using xxHash64. | |
| XXH64_state_t * | XXH64_createState (void) |
| Allocates an XXH64_state_t. | |
| XXH_errorcode | XXH64_freeState (XXH64_state_t *statePtr) |
| Frees an XXH64_state_t. | |
| void | XXH64_copyState (XXH64_state_t *dst_state, const XXH64_state_t *src_state) |
| Copies one XXH64_state_t to another. | |
| XXH_errorcode | XXH64_reset (XXH64_state_t *statePtr, XXH64_hash_t seed) |
| Resets an XXH64_state_t to begin a new hash. | |
| XXH_errorcode | XXH64_update (XXH64_state_t *statePtr, const void *input, size_t length) |
Consumes a block of input to an XXH64_state_t. | |
| XXH64_hash_t | XXH64_digest (const XXH64_state_t *statePtr) |
| Returns the calculated hash value from an XXH64_state_t. | |
| void | XXH64_canonicalFromHash (XXH64_canonical_t *dst, XXH64_hash_t hash) |
| Converts an XXH64_hash_t to a big endian XXH64_canonical_t. | |
| XXH64_hash_t | XXH64_hashFromCanonical (const XXH64_canonical_t *src) |
| Converts an XXH64_canonical_t to a native XXH64_hash_t. | |
Contains functions used in the classic 64-bit xxHash algorithm.
| typedef struct XXH64_state_s XXH64_state_t |
The opaque state struct for the XXH64 streaming API.
| XXH64_hash_t XXH64 | ( | const void * | input, |
| size_t | length, | ||
| XXH64_hash_t | seed ) |
Calculates the 64-bit hash of input using xxHash64.
| input | The block of data to be hashed, at least length bytes in size. |
| length | The length of input, in bytes. |
| seed | The 64-bit seed to alter the hash's output predictably. |
input and input + length must be valid, readable, contiguous memory. However, if length is 0, input may be NULL. In C++, this also must be TriviallyCopyable.| XXH64_state_t * XXH64_createState | ( | void | ) |
Allocates an XXH64_state_t.
| XXH_errorcode XXH64_freeState | ( | XXH64_state_t * | statePtr | ) |
Frees an XXH64_state_t.
| statePtr | A pointer to an XXH64_state_t allocated with XXH64_createState(). |
statePtr must be allocated with XXH64_createState().| void XXH64_copyState | ( | XXH64_state_t * | dst_state, |
| const XXH64_state_t * | src_state ) |
Copies one XXH64_state_t to another.
| dst_state | The state to copy to. |
| src_state | The state to copy from. |
dst_state and src_state must not be NULL and must not overlap. | XXH_errorcode XXH64_reset | ( | XXH64_state_t * | statePtr, |
| XXH64_hash_t | seed ) |
Resets an XXH64_state_t to begin a new hash.
| statePtr | The state struct to reset. |
| seed | The 64-bit seed to alter the hash result predictably. |
statePtr must not be NULL.| XXH_errorcode XXH64_update | ( | XXH64_state_t * | statePtr, |
| const void * | input, | ||
| size_t | length ) |
Consumes a block of input to an XXH64_state_t.
| statePtr | The state struct to update. |
| input | The block of data to be hashed, at least length bytes in size. |
| length | The length of input, in bytes. |
statePtr must not be NULL. input and input + length must be valid, readable, contiguous memory. However, if length is 0, input may be NULL. In C++, this also must be TriviallyCopyable.| XXH64_hash_t XXH64_digest | ( | const XXH64_state_t * | statePtr | ) |
Returns the calculated hash value from an XXH64_state_t.
| statePtr | The state struct to calculate the hash from. |
statePtr must not be NULL.statePtr, so you can update, digest, and update again.| void XXH64_canonicalFromHash | ( | XXH64_canonical_t * | dst, |
| XXH64_hash_t | hash ) |
Converts an XXH64_hash_t to a big endian XXH64_canonical_t.
| dst | The XXH64_canonical_t pointer to be stored to. |
| hash | The XXH64_hash_t to be converted. |
dst must not be NULL.| XXH64_hash_t XXH64_hashFromCanonical | ( | const XXH64_canonical_t * | src | ) |
Converts an XXH64_canonical_t to a native XXH64_hash_t.
| src | The XXH64_canonical_t to convert. |
src must not be NULL.