Function diplomat_runtime::diplomat_free
source · #[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
ptr
must be a pointer to a valid buffer allocated bydiplomat_alloc()
.