22typedef struct _hashmap
MOSAPI void * hashmap_get(hashmap_t *map, uintn key)
MOSAPI void * hashmap_put(hashmap_t *map, uintn key, void *value)
MOSAPI void hashmap_deinit(hashmap_t *map)
Deinitialize a hashmap.
int(* hashmap_key_compare_t)(const uintn key1, const uintn key2)
A hashmap hash function prototype.
hash_t(* hashmap_hash_t)(const uintn key)
MOSAPI void hashmap_init(hashmap_t *map, size_t capacity, hashmap_hash_t hash_func, hashmap_key_compare_t compare_func)
MOSAPI void * hashmap_remove(hashmap_t *map, uintn key)
MOSAPI void hashmap_foreach(hashmap_t *map, hashmap_foreach_func_t func, void *data)
bool(* hashmap_foreach_func_t)(const uintn key, void *value, void *data)
A hashmap key comparison function prototype.
MOSAPI int(2, 3) sprintf(char *__restrict str
struct _hashmap hashmap_t
hashmap_key_compare_t key_compare_func
hashmap_entry_t ** entries