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 /* you cannot clone maps with more than 390 mio entries */ |
|
61 int ucx_map_copy(UcxMap *from, UcxMap *to, copy_func fnc, void *data); |
61 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
62 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
62 UcxMap *ucx_map_rehash(UcxMap *map); |
63 int ucx_map_rehash(UcxMap *map); |
63 |
64 |
64 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
65 int ucx_map_put(UcxMap *map, UcxKey key, void *data); |
65 void* ucx_map_get(UcxMap *map, UcxKey key); |
66 void* ucx_map_get(UcxMap *map, UcxKey key); |
66 |
67 |
67 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |
68 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) |