folly::hash::fnv32_BROKEN

fnv32_BROKEN overloads

Synopses

Declared in <folly/hash/FnvHash.h>

overloadbrief FNV hash of a string.

uint32_t
fnv32_BROKEN(
    std::string const& str,
    uint32_t hash = fnv32_hash_start) noexcept;
» more...

FNV hash of a c-str.

constexpr
uint32_t
fnv32_BROKEN(
    char const* buf,
    uint32_t hash = fnv32_hash_start) noexcept;
» more...

Return Value

The resulting FNV hash value

Parameters

NameDescription
hashThe initial hash seed.
strString whose bytes are hashed
bufNull-terminated C string to hash