Skip to main content

dealloc

Function dealloc 

Source
pub unsafe fn dealloc(ptr: *mut u8, len: u32)
Expand description

Release a buffer that alloc returned before

ยงSafety

ptr must come from alloc with this exact len, and no code has freed it before.