blob: e8183d242654167fb3cc322f5e19aea80bdc588e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include "common.h"
#include "smrt_arena.h"
typedef struct _map_t* map_t;
map_t map_create(smrt_arena_t *arena, u64 table_size);
i32 map_insert(map_t map, u8 *key, u64 keylen, void *value);
i32 map_delete(map_t map, u8 *key, u64 keylen);
void *map_lookup(map_t map, u8 *key, u64 keylen);
void map_print(map_t map);
|