nn::os::InitializeMemoryBlock Function#include <nn/os.h>
void InitializeMemoryBlock(
uptr begin,
size_t size
);
| Name | Description | |
|---|---|---|
| in | begin | Specifies the starting address of a memory region managed by the MemoryBlock and StackMemoryBlock classes. |
| in | size | Specifies the size of a memory region managed by the MemoryBlock and StackMemoryBlock classes. The size argument must be a multiple of 4096. |
Allows use of the MemoryBlock and StackMemoryBlock classes.
The memory managed by the MemoryBlock and StackMemoryBlock classes must be specified before constructing instances of these classes. These classes allocate memory from the region specified by the begin and size arguments.
CONFIDENTIAL