78 size_t index; |
79 size_t index; |
79 }; |
80 }; |
80 |
81 |
81 |
82 |
82 UcxMap *ucx_map_new(size_t size); |
83 UcxMap *ucx_map_new(size_t size); |
|
84 UcxMap *ucx_map_new_allocator(size_t size, UcxAllocator *allocator); |
83 void ucx_map_free(UcxMap *map); |
85 void ucx_map_free(UcxMap *map); |
84 /* you cannot clone maps with more than 390 mio entries */ |
86 /* you cannot clone maps with more than 390 mio entries */ |
85 int ucx_map_copy(UcxMap *restrict from, UcxMap *restrict to, |
87 int ucx_map_copy(UcxMap *restrict from, UcxMap *restrict to, |
86 copy_func fnc, void *data); |
88 copy_func fnc, void *data); |
87 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |
89 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data); |