|
XXH_PUBLIC_API XXH32_hash_t | XXH32 (const void *input, size_t length, unsigned int seed) |
| Calculates the 32-bit hash of input using xxHash32. More...
|
|
XXH_PUBLIC_API void | XXH32_canonicalFromHash (XXH32_canonical_t *dst, XXH32_hash_t hash) |
| Converts an XXH32_hash_t to a big endian XXH32_canonical_t. More...
|
|
XXH_PUBLIC_API void | XXH32_copyState (XXH32_state_t *dst_state, const XXH32_state_t *src_state) |
| Copies one XXH32_state_t to another. More...
|
|
XXH_PUBLIC_API XXH32_state_t * | XXH32_createState (void) |
|
XXH_PUBLIC_API XXH32_hash_t | XXH32_digest (const XXH32_state_t *statePtr) |
| Returns the calculated hash value from an XXH32_state_t. More...
|
|
XXH_PUBLIC_API XXH_errorcode | XXH32_freeState (XXH32_state_t *statePtr) |
| Frees an XXH32_state_t. More...
|
|
XXH_PUBLIC_API XXH32_hash_t | XXH32_hashFromCanonical (const XXH32_canonical_t *src) |
| Converts an XXH32_canonical_t to a native XXH32_hash_t. More...
|
|
XXH_PUBLIC_API XXH_errorcode | XXH32_reset (XXH32_state_t *statePtr, unsigned int seed) |
| Resets an XXH32_state_t to begin a new hash. More...
|
|
XXH_PUBLIC_API XXH_errorcode | XXH32_update (XXH32_state_t *statePtr, const void *input, size_t length) |
| Consumes a block of input to an XXH32_state_t. More...
|
|
XXH_PUBLIC_API XXH64_hash_t | XXH64 (const void *input, size_t length, unsigned long long seed) |
| Calculates the 64-bit hash of input using xxHash64. More...
|
|
XXH_PUBLIC_API void | XXH64_canonicalFromHash (XXH64_canonical_t *dst, XXH64_hash_t hash) |
|
XXH_PUBLIC_API void | XXH64_copyState (XXH64_state_t *dst_state, const XXH64_state_t *src_state) |
|
XXH_PUBLIC_API XXH64_state_t * | XXH64_createState (void) |
|
XXH_PUBLIC_API XXH64_hash_t | XXH64_digest (const XXH64_state_t *statePtr) |
|
XXH_PUBLIC_API XXH_errorcode | XXH64_freeState (XXH64_state_t *statePtr) |
|
XXH_PUBLIC_API XXH64_hash_t | XXH64_hashFromCanonical (const XXH64_canonical_t *src) |
|
XXH_PUBLIC_API XXH_errorcode | XXH64_reset (XXH64_state_t *statePtr, unsigned long long seed) |
|
XXH_PUBLIC_API XXH_errorcode | XXH64_update (XXH64_state_t *statePtr, const void *input, size_t length) |
|
XXH_PUBLIC_API unsigned | XXH_versionNumber (void) |
|
xxHash prototypes and implementation
Definition in file xxhash.h.
#define XXH_VERSION_MAJOR 0 |
XXH_NAMESPACE, aka Namespace Emulation :
If you want to include and expose xxHash functions from within your own library, but also want to avoid symbol collisions with other libraries which may also include xxHash,
you can use XXH_NAMESPACE, to automatically prefix any public symbol from xxhash library with the value of XXH_NAMESPACE (therefore, avoid NULL and numeric values).
Note that no change is required within the calling program as long as it includes xxhash.h
: regular symbol name will be automatically translated by this header.
Definition at line 152 of file xxhash.h.