Function snmalloc_sys::rust_alloc [−][src]
pub unsafe extern "C" fn rust_alloc(
alignment: usize,
size: usize
) -> *mut c_voidExpand description
Allocate the memory with the given alignment and size. On success, it returns a pointer pointing to the required memory address. On failure, it returns a null pointer. The client must assure the following things:
alignmentis greater than zeroalignmentis a power of 2 The program may be forced to abort if the constrains are not full-filled.