Skip to main content

plg_rt_free

Function plg_rt_free 

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

§Safety

ptr/len must be exactly a prior plg_rt_alloc/plg_rt_run_query pair. len == 0 no-ops to pair with raw_alloc(0)’s dangling sentinel (which was never really allocated); the two halves agree by convention, not by API.