DoxigAlpha

BufMap

BufMap copies keys and values before they go into the map and frees them when they get removed.

Fields of this type

Fields

#

Create a BufMap backed by a specific allocator.

Functions

#
init
Create a BufMap backed by a specific allocator.
deinit
Free the backing storage of the map, as well as all
putMove
Same as `put` but the key and value become owned by the BufMap rather
put
`key` and `value` are copied into the BufMap.
getPtr
Find the address of the value associated with a key.
get
Return the map's copy of the value associated with
remove
Removes the item from the map and frees its value.
count
Returns the number of KV pairs stored in the map.
iterator
Returns an iterator over entries in the map.