get_or_reserve_entry

Function get_or_reserve_entry 

Source
pub unsafe fn get_or_reserve_entry(
    base_ptr: *mut u8,
    key_ptr: *const u8,
) -> *mut u8
Expand description

Get or reserve an entry in the map

§Safety

  • base_ptr must point to a valid initialized map
  • key_ptr must point to a valid key of the size specified in the map header

§Returns

Pointer to the value location, or null if the map is full