Skip to main content

free_bytes

Function free_bytes 

Source
pub unsafe fn free_bytes(ptr: *mut u8, len: usize)
Expand description

The body of {prefix}_free_bytes: release a run returned by this runtime (a string, bytes, or a value buffer) or allocated with alloc. A null ptr or a len of 0 is a no-op.

ยงSafety

ptr must be null or a pointer this runtime returned together with len (or alloc returned for len), released exactly once.