Hash implementation based on Fowler-Noll-Vo hash function.
More...
#include <hash.h>
|
static uint64_t | hash (const uint8_t *data, size_t length) |
| Compute the hash. More...
|
|
static uint64_t | hash (const std::string &str) |
| Compute the hash. More...
|
|
Hash implementation based on Fowler-Noll-Vo hash function.
Definition at line 19 of file hash.h.
static uint64_t isc::util::Hash64::hash |
( |
const uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
|
inlinestatic |
Compute the hash.
FNV-1a hash function
- Parameters
-
data | data to hash |
length | length of data |
- Returns
- the hash value
Definition at line 27 of file hash.h.
References FNV_offset_basis, and FNV_prime.
Referenced by hash().
static uint64_t isc::util::Hash64::hash |
( |
const std::string & |
str | ) |
|
|
inlinestatic |
Compute the hash.
FNV-1a hash function
- Parameters
-
str | not empty string to hash |
- Returns
- the hash value
Definition at line 42 of file hash.h.
References hash().
const uint64_t isc::util::Hash64::FNV_offset_basis = 14695981039346656037ull |
|
static |
Offset basis.
Definition at line 48 of file hash.h.
Referenced by hash().
const uint64_t isc::util::Hash64::FNV_prime = 1099511628211ull |
|
static |
The documentation for this struct was generated from the following file: