PatchworkOS
Loading...
Searching...
No Matches
map_key_t Struct Reference

Map key stucture. More...

#include <map.h>

Data Fields

uint8_t key [MAP_KEY_MAX_LENGTH]
 
uint64_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 the key irself for full comparisons no matter the type of the key.

Definition at line 44 of file map.h.

Field Documentation

◆ hash

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().

◆ key

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().

◆ len

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().


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