|
PatchworkOS
966e257
A non-POSIX operating system.
|
Map key stucture. More...
#include <map.h>
Data Fields | |
| uint8_t | key [MAP_KEY_MAX_LENGTH] |
| uint8_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 lookups while using the key itself for full comparisons no matter the type of the key.
| uint8_t map_key_t::key[MAP_KEY_MAX_LENGTH] |