ucx/map.h

changeset 52
34f50d0bada4
parent 51
1c78cd19fb6b
child 53
e533c170bfb8
equal deleted inserted replaced
51:1c78cd19fb6b 52:34f50d0bada4
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)

mercurial