Skip to main content

mi_malloc_aligned

Function mi_malloc_aligned 

Source
pub unsafe extern "C" fn mi_malloc_aligned(
    size: usize,
    alignment: usize,
) -> *mut c_void
Expand description

Allocate size bytes aligned by alignment. Returns a pointer to the allocated memory, or null if out of memory. The returned pointer is aligned by alignment.