folly::hash::fnva32_buf

fnva32_buf overloads

Synopses

Declared in <folly/hash/FnvHash.h>

FNV hash of a byte-range given as a type-erased pointer.

uint32_t
fnva32_buf(
    void const* buf,
    size_t n,
    uint32_t hash = fnva32_hash_start) noexcept;
» more...

FNVA hash of a byte-range.

template</* implementation-defined */ C>
constexpr
uint32_t
fnva32_buf(
    C const* buf,
    size_t n,
    uint32_t hash = fnva32_hash_start) noexcept;
» more...

Return Value

The resulting FNV hash value

Parameters

NameDescription
bufPointer to the bytes to hash
nNumber of bytes to hash
hashInitial hash seed to continue from

See Also

fnv32 methodset fnv