static void * AllocMemory(
u32 size,
u8 alignment = 4
);
| Name | Description | |
|---|---|---|
size |
Size of the memory block to be allocated. | |
| alignment | The alignment of the memory to be allocated. |
Allocates a memory block.
Allocates a memory block of size bytes. Before using this function, be sure to set a memory allocator using Layout::SetAllocator().
CONFIDENTIAL