#include <hash.hpp>
|
using | result_type = size_t |
|
|
result_type | hash_ {0xcbf29ce484222325u} |
| FNV-1a offset basis.
|
|
|
static constexpr size_t | k_fnv_prime = 1099511628211u |
| FNV-1a prime.
|
|
FNV-1a hash algorithm.
This is a 64-bit implementation of the FNV-1a hash algorithm used by hash_append. See FNV-1a for details.
◆ add_byte()
void smats::hash::FNV1a::add_byte |
( |
const uint8_t | byte | ) |
|
|
inlineconstexprnoexcept |
Append a byte into this hash.
- Parameters
-
◆ operator size_t()
smats::hash::FNV1a::operator size_t |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
Get read-only access to the hash value of the FNV1a algorithm.
- Returns
- hash value of the FNV1a algorithm
◆ operator()()
void smats::hash::FNV1a::operator() |
( |
const void * | data, |
|
|
const size_t | length ) |
|
inlinenoexcept |
Append [data, data + length) bytes into this hash.
- Parameters
-
data | data to hash |
length | length of the data |
The documentation for this class was generated from the following file: