![]() |
Ultra 0.9.4
|
#include <hash_t.h>
Public Member Functions | |
| murmurhash3_sink (std::uint32_t=1973) noexcept | |
| void | write (std::span< const std::byte >) noexcept |
| hash_t | final () noexcept |
Incremental MurmurHash3 x64 128-bit sink.
This class allows hashing a byte stream incrementally, producing a 128-bit MurmurHash3 signature equivalent to hashing the entire input in a single call to murmurhash3::hash128.
It's designed to act as a byte sink for streaming algorithms such as gp::individual::pack, avoiding temporary buffers and repeated hashing.
|
inlineexplicitnoexcept |
Constructs a new incremental MurmurHash3 sink.
| [in] | seed | initial seed value (default: 1973) |
|
inlinenodiscardnoexcept |
Finalises the hash computation and returns the resulting signature.
|
inlinenoexcept |
Feeds a sequence of bytes into the hash state.
| [in] | bytes | byte span to be hashed |
This function may be called multiple times with arbitrary chunk sizes. The resulting hash is identical to hashing the concatenation of all provided byte sequences in a single call.