Function snmalloc_sys::sn_rust_dealloc
source · pub unsafe extern "C" fn sn_rust_dealloc(
ptr: *mut c_void,
alignment: usize,
size: usize
) -> c_void
Expand description
De-allocate the memory at the given address with the given alignment and size. The client must assure the following things:
- the memory is acquired using the same allocator and the pointer points to the start position.
alignment
andsize
is the same as allocation The program may be forced to abort if the constrains are not full-filled.