![]() |
MOS Source Code
|
#include <mos/allocator.hpp>#include <mos/lib/sync/spinlock.hpp>#include <mos/moslib_global.hpp>#include <mos/types.hpp>#include <mos_stdlib.hpp>Go to the source code of this file.
Classes | |
| struct | hashmap_t |
Typedefs | |
| typedef hash_t(* | hashmap_hash_t) (const uintn key) |
| typedef int(* | hashmap_key_compare_t) (const uintn key1, const uintn key2) |
| A hashmap hash function prototype. | |
| typedef bool(* | hashmap_foreach_func_t) (const uintn key, void *value, void *data) |
| A hashmap key comparison function prototype. | |
Functions | |
| MOSAPI void | hashmap_init (hashmap_t *map, size_t capacity, hashmap_hash_t hash_func, hashmap_key_compare_t compare_func) |
| MOSAPI void | hashmap_deinit (hashmap_t *map) |
| Deinitialize a hashmap. | |
| MOSAPI void * | hashmap_put (hashmap_t *map, uintn key, void *value) |
| MOSAPI void * | hashmap_get (hashmap_t *map, uintn key) |
| MOSAPI void * | hashmap_remove (hashmap_t *map, uintn key) |
| MOSAPI void | hashmap_foreach (hashmap_t *map, hashmap_foreach_func_t func, void *data) |