Function diplomat_runtime::diplomat_alloc
source · #[no_mangle]
pub unsafe extern "C" fn diplomat_alloc(
size: usize,
align: usize,
) -> *mut u8
Expand description
Allocates a buffer of a given size in Rust’s memory.
§Safety
- The allocated buffer must be freed with
diplomat_free()
.