nn::fnd::FrameHeapTemplate::Allocate Member Function
void * Allocate(
size_t size,
s32 alignment = DEFAULT_ALIGNMENT
);
| Name | Description | |
|---|---|---|
| in | size | Specifies the size (in bytes) of the memory block to allocate. |
| in | alignment | Specifies the alignment. Specify one of the following values: 4, 8, 16, 32, -4, -8, -16, or -32. |
Allocates memory from the frame heap.
Memory is allocated from the beginning of the heap when you specify a positive alignment, and from the end of the heap when you specify a negative alignment.
CONFIDENTIAL