#[unsafe(no_mangle)]pub unsafe extern "C" fn diplomat_free(
ptr: *mut u8,
size: usize,
align: usize,
)Expand description
Frees a buffer that was allocated in Rust’s memory.
§Safety
ptrmust be a pointer to a valid buffer allocated bydiplomat_alloc().