|
Swadge ESP32-S2
2.0.0
APIs to develop for the Magfest Swadge
|
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 |
| }; | |
| bool hasMulti |
< Whether the bucket contains multiple or a single item
| union { ... } |