aligned_malloc

Function aligned_malloc 

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

An aligned version of malloc, used when you need to get the aligned space on the heap Freeing the received address is performed ONLY through the aligned_free function

§Arguments

  • size -
  • alignment -

§Returns

void*