30 #ifndef HYPERTABLE_MURMURHASH_H
31 #define HYPERTABLE_MURMURHASH_H
49 extern uint32_t
murmurhash2(
const void *data,
size_t len, uint32_t hash);
65 uint32_t
operator()(
const void *start,
size_t len, uint32_t seed = 0)
const {
79 #endif // HYPERTABLE_MURMURHASH_H
std::string String
A String is simply a typedef to std::string.
uint32_t operator()(const char *s) const
Returns hash of a null terminated memory buffer.
uint32_t operator()(const String &s) const
Returns hash of a String.
uint32_t murmurhash2(const void *key, size_t len, uint32_t seed)
The murmurhash2 implementation.
uint32_t operator()(const void *start, size_t len, uint32_t seed=0) const
Returns hash of a memory buffer.
Helper structure using overloaded operator() to calculate hashes of various input types...
A String class based on std::string.