PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
map_key_t Struct Reference

Map key stucture. More...

#include <map.h>

Collaboration diagram for map_key_t:

Data Fields

uint8_t key [MAP_KEY_MAX_LENGTH]
 
uint8_t len
 
uint64_t hash
 

Detailed Description

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.

Definition at line 55 of file map.h.

Field Documentation

◆ key

uint8_t map_key_t::key[MAP_KEY_MAX_LENGTH]

Definition at line 57 of file map.h.

◆ len

uint8_t map_key_t::len

Definition at line 58 of file map.h.

◆ hash

uint64_t map_key_t::hash

Definition at line 59 of file map.h.


The documentation for this struct was generated from the following file: