Function concordium_std::prims::state_iterator_next
source · pub unsafe extern "C" fn state_iterator_next(iterator: u64) -> u64
Expand description
Return the next entry along the iterator, and advance the iterator. The return value is
- u64::MAX if the iterator does not exist (it was deleted, or the ID is invalid)
- all but the second bit set to 1 if no more entries are left, the iterator is exhausted. All further calls will yield the same until the iterator is deleted.
- otherwise the first bit is 0, and the remaining bits encode an entry identifier that can be passed to any of the entry methods.