Struct hashnode

Struct Documentation

struct hashnode

Nodes within the hashmap (each bucket is filled with these).

As you woulde xpect for an associative array element, this is a key-value pair

Must be packed and aligned to the same size as ptr_t so that casts from hashnode::data are safe on all targets.

Public Members

uint8_t key[64]

Key for key-value pair.

dptr_t *data

Value for key-value pair.

uint32_t hash

Calculated hash. Not used at runtime, but useful when printing elements for debugging.