Function ctru_sys::vramAllocAt

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

Allocates a 0x80-byte aligned buffer in the given VRAM bank.

§Arguments

  • size - Size of the buffer to allocate.
  • pos - VRAM bank to use (see vramAllocPos).

§Returns

The allocated buffer.