Function javy::alloc::canonical_abi_free
source · pub unsafe extern "C" fn canonical_abi_free(
ptr: *mut u8,
size: usize,
alignment: usize
)
Expand description
Frees allocated memory in instance.
§Safety
ptr
must denote a block of memory allocated bycanonical_abi_realloc
.size
andalignment
must match the values provided in the originalcanonical_abi_realloc
call that returnedptr
.