Function gnunet_sys::GNUNET_CONTAINER_multiuuidmap_create[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_multiuuidmap_create(
    len: c_uint,
    do_not_copy_keys: c_int
) -> *mut GNUNET_CONTAINER_MultiUuidmap

@ingroup hashmap Create a multi peer map (hash map for public keys of peers).

@param len initial size (map will grow as needed) @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default; #GNUNET_YES means that on ‘put’, the ‘key’ does not have to be copied as the destination of the pointer is guaranteed to be life as long as the value is stored in the hashmap. This can significantly reduce memory consumption, but of course is also a recipe for heap corruption if the assumption is not true. Only use this if (1) memory use is important in this case and (2) you have triple-checked that the invariant holds @return NULL on error