45 }; |
45 }; |
46 |
46 |
47 |
47 |
48 UcxMap *ucx_map_new(size_t size); |
48 UcxMap *ucx_map_new(size_t size); |
49 void ucx_map_free(UcxMap *map); |
49 void ucx_map_free(UcxMap *map); |
|
50 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
50 |
51 |
51 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
52 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
52 void* ucx_map_get(UcxMap *map, UcxKey key); |
53 void* ucx_map_get(UcxMap *map, UcxKey key); |
53 |
54 |
54 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |
55 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |