ucx/map.h

changeset 51
1c78cd19fb6b
parent 48
621a4430c404
child 52
34f50d0bada4
equal deleted inserted replaced
50:ff194559eb41 51:1c78cd19fb6b
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)

mercurial