Swadge ESP32-S2  2.0.0
APIs to develop for the Magfest Swadge
Loading...
Searching...
No Matches
hashBucket Struct Reference

Detailed Description

A single element of the hash map array, holding either one value or a list of values.

While holding a single value, the item's key, hash, and value are held directly in the struct. While holding multiple values, each item is stored as a value in a linked list, heap-allocated.

Data Fields

bool hasMulti
 < Whether the bucket contains multiple or a single item
union { 
hashNode_t single
 < The node's single-item contents, when hasMulti is false
list_t multi
}; 

Field Documentation

◆ hasMulti

bool hasMulti

< Whether the bucket contains multiple or a single item

◆ [union]

union { ... }

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