|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
Minimal open-addressing hash map for 64-bit key/value pairs used in deduplication lookup. More...
#include <aaruformat/hash_map.h>
Data Fields | |
| kv_pair_t * | table |
| Array of key/value slots of length == size. | |
| size_t | size |
| Allocated slot capacity of table. | |
| size_t | count |
| Number of active (filled) entries. | |
Minimal open-addressing hash map for 64-bit key/value pairs used in deduplication lookup.
Fields:
Load factor guidance: insert performance degrades as count approaches size; callers may rebuild with a larger size when (count * 10 / size) exceeds a chosen threshold (e.g. 70 – 80%). No automatic resizing is performed.
Definition at line 49 of file hash_map.h.
| size_t hash_map_t::count |
Number of active (filled) entries.
Definition at line 53 of file hash_map.h.
Referenced by create_map(), insert_map(), and resize_map().
| size_t hash_map_t::size |
Allocated slot capacity of table.
Definition at line 52 of file hash_map.h.
Referenced by create_map(), insert_map(), lookup_map(), and resize_map().
| kv_pair_t* hash_map_t::table |
Array of key/value slots of length == size.
Definition at line 51 of file hash_map.h.
Referenced by create_map(), free_map(), insert_map(), lookup_map(), and resize_map().