Function gnunet_sys::GNUNET_CONTAINER_multishortmap_iterator_next[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_multishortmap_iterator_next(
    iter: *mut GNUNET_CONTAINER_MultiShortmapIterator,
    key: *mut GNUNET_ShortHashCode,
    value: *mut *const c_void
) -> c_int

@ingroup hashmap Retrieve the next element from the hash map at the iterator’s position. If there are no elements left, #GNUNET_NO is returned, and @a key and @a value are not modified. This operation is only allowed if no elements have been removed from the multihashmap since the creation of @a iter, and the map has not been destroyed. Adding elements may result in repeating or skipping elements.

@param iter the iterator to get the next element from @param key pointer to store the key in, can be NULL @param value pointer to store the value in, can be NULL @return #GNUNET_YES we returned an element, #GNUNET_NO if we are out of elements