roo_collections
API Documentation for roo_collections
Loading...
Searching...
No Matches
hash.h
Go to the documentation of this file.
1#pragma once
2
3/// @file
4/// @brief Hashing utilities used by roo_collections containers.
5/// @ingroup roo_collections
6
7#include <inttypes.h>
8#include <stddef.h>
9
10namespace roo_collections {
11
12/// @brief Computes 32-bit MurmurHash3 of a binary buffer.
13/// @param key Pointer to the first byte of the buffer.
14/// @param len Number of bytes to hash.
15/// @param seed Hash seed.
16/// @return 32-bit hash value.
17uint32_t murmur3_32(const void* key, size_t len, uint32_t seed);
18
19} // namespace roo_collections
uint32_t murmur3_32(const void *key, size_t len, uint32_t seed)
Computes 32-bit MurmurHash3 of a binary buffer.
Definition hash.cpp:12