96 unsigned char const *bytes,
123#define cx_hash_key_cxstr(str) cx_hash_key((void*)(str).ptr, (str).length)
Common definitions and feature checks.
#define __attribute__(x)
Removes GNU C attributes where they are not supported.
Definition: common.h:127
void cx_hash_murmur(CxHashKey *key)
Computes a murmur2 32 bit hash.
CxHashKey cx_hash_key_str(char const *str)
Computes a hash key from a string.
CxHashKey cx_hash_key(void const *obj, size_t len)
Computes a hash key for an arbitrary object.
CxHashKey cx_hash_key_bytes(unsigned char const *bytes, size_t len)
Computes a hash key from a byte array.
Internal structure for a key within a hash map.
Definition: hash_key.h:48
void const * data
The key data.
Definition: hash_key.h:50
size_t len
The key data length.
Definition: hash_key.h:54
unsigned hash
The hash value of the key data.
Definition: hash_key.h:56