Function gnunet_sys::GNUNET_CONTAINER_heap_walk_get_next[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_heap_walk_get_next(
    heap: *mut GNUNET_CONTAINER_Heap
) -> *mut c_void

@ingroup heap Perform a random walk of the tree. The walk is biased towards elements closer to the root of the tree (since each walk starts at the root and ends at a random leaf). The heap internally tracks the current position of the walk.

@param heap heap to walk @return data stored at the next random node in the walk; NULL if the tree is empty.