byte-wise hasher
Definition at line 12 of file hash.h.
|
void | update (std::byte byte) noexcept |
|
void | update (size_t n, const std::byte *bytes) noexcept |
| Updates the hash with an additional n bytes. More...
|
|
auto | value () const noexcept |
|
◆ initial_value()
static result_type ttg::detail::FNVhasher::initial_value |
( |
| ) |
|
|
inlinestatic |
- Returns
- the initial hash value
Definition at line 33 of file hash.h.
◆ update() [1/2]
void ttg::detail::FNVhasher::update |
( |
size_t |
n, |
|
|
const std::byte * |
bytes |
|
) |
| |
|
inlinenoexcept |
Updates the hash with an additional n bytes.
Definition at line 25 of file hash.h.
◆ update() [2/2]
void ttg::detail::FNVhasher::update |
( |
std::byte |
byte | ) |
|
|
inlinenoexcept |
Updates the hash with one byte
- Parameters
-
Definition at line 22 of file hash.h.
◆ value()
auto ttg::detail::FNVhasher::value |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- the value of the hash of the stream
Definition at line 30 of file hash.h.
The documentation for this class was generated from the following file: