Function ctru_sys::linearMemAlign

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

Allocates a buffer aligned to the given size.

§Arguments

  • size - Size of the buffer to allocate.
  • alignment - Alignment to use.

§Returns

The allocated buffer.