#include <heap.h>
Public Member Functions | |
void * | allocPage () |
void | freePage (void *page) |
HeapMem () | |
int | pageSize () |
~HeapMem () |
This class allows to manage direct memory pages from the system. it's the base of the global SBA (Small Block Allocator).
The engine creates a singleton instance of this class called Heap. All its functions are inlined to system specific sys_* function; this means that release build won't actually access the this-> pointer, and calling the methods of the singleton Heap will be exactly as calling system specific functions.
Falcon::HeapMem::HeapMem | ( | ) |
Falcon::HeapMem::~HeapMem | ( | ) |
void* Falcon::HeapMem::allocPage | ( | ) | [inline] |
References Falcon::Sys::sys_allocPage().
void Falcon::HeapMem::freePage | ( | void * | page | ) | [inline] |
int Falcon::HeapMem::pageSize | ( | ) | [inline] |
References Falcon::Sys::sys_pageSize().