Function overwrite

Source
pub unsafe fn overwrite(target_base: *mut u8, source: *const u8) -> bool
Expand description

Copy all entries from source map to target map

§Safety

  • Both maps must be properly initialized with compatible layouts (capacity can differ)
  • Target map must have sufficient capacity

§Returns

true if the operation succeeded, false if the target has insufficient capacity