Skip to main content

dealloc

Function dealloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn dealloc(ptr: *mut u8, len: usize)
Expand description

Give a buffer back. len must be the length passed to alloc (or returned by check).

§Safety

ptr and len must come from alloc or check and be freed once.