|
PatchworkOS
|
Map key stucture. More...
#include <map.h>
Data Fields | |
| uint8_t | key [MAP_KEY_MAX_LENGTH] |
| uint64_t | len |
| uint64_t | hash |
Map key stucture.
Is used to implement a generic key for the map. The object is copied into key and hashed. We can then use the hash for quick comparisons and the key irself for full comparisons no matter the type of the key.
| uint64_t map_key_t::hash |
Definition at line 48 of file map.h.
Referenced by map_entry_init(), map_find_slot(), map_key_buffer(), map_key_is_equal(), and map_key_uint64().
| uint8_t map_key_t::key[MAP_KEY_MAX_LENGTH] |
Definition at line 46 of file map.h.
Referenced by map_entry_init(), map_key_buffer(), map_key_is_equal(), and map_key_uint64().
| uint64_t map_key_t::len |
Definition at line 47 of file map.h.
Referenced by map_entry_init(), map_key_buffer(), map_key_is_equal(), and map_key_uint64().