55 }; |
55 }; |
56 |
56 |
57 |
57 |
58 UcxMap *ucx_map_new(size_t size); |
58 UcxMap *ucx_map_new(size_t size); |
59 void ucx_map_free(UcxMap *map); |
59 void ucx_map_free(UcxMap *map); |
|
60 /* you cannot clone maps with more than 390 mio entries */ |
60 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
61 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
|
62 UcxMap *ucx_map_rehash(UcxMap *map); |
61 |
63 |
62 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
64 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
63 void* ucx_map_get(UcxMap *map, UcxKey key); |
65 void* ucx_map_get(UcxMap *map, UcxKey key); |
64 |
66 |
65 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |
67 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |