22 KB_API b8 hash_table_create(
hash_table *table, usize initial_capacity, f64 max_load,
allocator *alloc);
24 KB_API
void hash_table_destroy(
hash_table *table);
26 KB_API b8 hash_table_set(
hash_table *table,
const void *key, usize key_size, uptr value);
28 KB_API b8 hash_table_get(
hash_table *table,
const void *key, usize key_size,
void *value_ptr);
30 #define hash_table_for_each(table) \
31 for (hash_table_entry *entry = (table).data; entry < (table).data + (table).capacity; ++entry) \
32 if (entry->key_size != 0)
Central header providing allocator functionality.
Global typedefs and macros.
Central allocator structure.