Barrelfish
|
Hashtable implementation. More...
Macros | |
#define | equals(_k1, _k2, len) (!memcmp((_k1), (_k2), (len))) |
check two keys for equality More... | |
Functions | |
struct hashtable * | create_hashtable2 (int capacity, int load_factor) |
create an empty hashtable with a given capacity and load factor More... | |
struct hashtable * | create_hashtable (void) |
create an empty hashtable with default capacity and load factor More... | |
Hashtable implementation.
#define equals | ( | _k1, | |
_k2, | |||
len | |||
) | (!memcmp((_k1), (_k2), (len))) |
check two keys for equality
k1 | the first string |
k2 | the second string |
struct hashtable* create_hashtable | ( | void | ) |
create an empty hashtable with default capacity and load factor
struct hashtable* create_hashtable2 | ( | int | capacity, |
int | loadFactor | ||
) |
create an empty hashtable with a given capacity and load factor
capacity | the capacity |
the | load factor |