Function find_next_valid_entry

Source
pub unsafe fn find_next_valid_entry(
    base: *mut u8,
    start_index: u16,
) -> (*const u8, *mut u8, u16)
Expand description

Find the next valid entry in the map

§Safety

  • base must point to a valid initialized map

§Returns

Tuple of (key_ptr, value_ptr, index) of the next valid entry, or (null, null, 0xFFFF) if no more entries exist