Function mem_map::exports::insert_mv[][src]

#[no_mangle]
pub unsafe extern "C" fn insert_mv(
    id: u64,
    ptr: *mut c_void,
    size: size_t,
    as_extern: bool
) -> u32
Expand description

insert_mv - Copies a certain memory region into an own map

Uses memmove to copy the memory

Returns non zero value if failed.
See the error enum to find out more.

Arguments

  • id: u64 - Map key, used to later get the pointer.
  • ptr: *mut c_void - Pointer to the data to copy.
  • size: size_t - Size of the data to copy.
  • as_extern: bool - Should the data be available for other processes.