fnv32_buf overloads

Synopses

Declared in <folly/hash/FnvHash.h>

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

uint32_t
fnv32_buf(
    void const* buf,
    size_t n,
    uint32_t hash = fnv32_hash_start) noexcept;

Alias for fnv32_buf_BROKEN.

template</* implementation-defined */ C>
constexpr
uint32_t
fnv32_buf(
    C const* buf,
    size_t n,
    uint32_t hash = fnv32_hash_start) noexcept;

Return Value

The resulting FNV hash value

Parameters

Name

Description

buf

Pointer to the bytes to hash

n

Number of bytes to hash

hash

Initial hash seed to continue from

See Also

fnv32_BROKEN methodset fnv

Created with MrDocs