summaryrefslogtreecommitdiff
path: root/docs/application/map.md
blob: 1bc8b40d3781d148310dfdcbac4b43ca067ecd00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Map

---

## Object Definitions

```c
typedef struct _kpl_map_bucket {
    KPL_SLAB_LIST_HEADER(struct _kpl_map_bucket);
    kpl_any key, value;
} kpl_map_bucket;

typedef struct _kpl_map {
    KPL_POOL_HEADER(strcut _kpl_map);
    uint64_t length;
    kpl_interface *key_interface, *value_interface;
    kpl_map_bucket *head, *tail;
    kpl_map_bucket *buckets[];
} kpl_map;
```