Lines Matching refs:bucket
32 hash_map_bucket_t *bucket; member
74 hash_map->bucket = zeroed_allocator->alloc(sizeof(hash_map_bucket_t) * num_bucket); in hash_map_new_internal()
75 if (hash_map->bucket == NULL) { in hash_map_new_internal()
95 hash_map->allocator->free(hash_map->bucket); in hash_map_free()
118 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_has_key()
130 if (hash_map->bucket[hash_key].list == NULL) { in hash_map_set()
131 hash_map->bucket[hash_key].list = list_new_internal(bucket_free_, hash_map->allocator); in hash_map_set()
132 if (hash_map->bucket[hash_key].list == NULL) in hash_map_set()
135 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_set()
161 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_erase()
177 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_get()
190 if (hash_map->bucket[i].list == NULL) in hash_map_clear()
192 list_free(hash_map->bucket[i].list); in hash_map_clear()
193 hash_map->bucket[i].list = NULL; in hash_map_clear()
202 if (hash_map->bucket[i].list == NULL) in hash_map_foreach()
204 for (const list_node_t *iter = list_begin(hash_map->bucket[i].list); in hash_map_foreach()
205 iter != list_end(hash_map->bucket[i].list); in hash_map_foreach()