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 by canonical_abi_realloc.
  • size and alignment must match the values provided in the original canonical_abi_realloc call that returned ptr.