Lines Matching refs:hashmap
38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init()
51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new()
63 void hashmap__clear(struct hashmap *map) in hashmap__clear()
76 void hashmap__free(struct hashmap *map) in hashmap__free()
85 size_t hashmap__size(const struct hashmap *map) in hashmap__size()
90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity()
95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow()
101 static int hashmap_grow(struct hashmap *map) in hashmap_grow()
130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry()
154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
206 bool hashmap__find(const struct hashmap *map, const void *key, void **value) in hashmap__find()
220 bool hashmap__delete(struct hashmap *map, const void *key, in hashmap__delete()