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

Synopsis

Declared in <folly/hash/FnvHash.h>

uint32_t
fnv32_buf_FIXED(
    void 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

Created with MrDocs