27 using namespace Mark3;
28 void*
operator new(
size_t n)
34 void*
operator new[](
size_t n)
40 void operator delete(
void* p)
46 void operator delete[](
void* p)
92 return Allocate(static_cast<AutoAllocType>(eType_), 0);
97 Free(static_cast<AutoAllocType>(eUserType_), pvObj_);
void(*)(AutoAllocType eType_, void *pvObj_) AutoAllocFree_t
void *(*)(AutoAllocType eType_, size_t sSize_) AutoAllocAllocator_t
static void DestroyRawData(void *pvData_)
DestroyRawData Free a previously allocated blob of data allocated via NewRawData() ...
static void Init(void)
Init Initialize the AutoAllocator before use. Called by Kernel::Init().
static void DestroyUserTypeAllocation(uint8_t eUserType_, void *pvObj_)
DestroyUserTypeAllocation Free a previously allocated user-defined object.
static void * NewUserTypeAllocation(uint8_t eUserType_)
NewUserTypeAllocation Attempt to allocate a user-defined object type from the heap.
Single include file given to users of the Mark3 Kernel API.
static AutoAllocFree_t m_pfFree
Funciton used to free objectss.
static AutoAllocAllocator_t m_pfAllocator
Function used to allocate objects.
static void Free(AutoAllocType eType_, void *pvObj_)
static void * NewRawData(size_t sSize_)
NewRawData Attempt to allocate a blob of raw data from the heap.
static void * Allocate(AutoAllocType eType_, size_t sSize_)
static void SetAllocatorFunctions(AutoAllocAllocator_t pfAllocator_, AutoAllocFree_t pfFree_)
SetAllocatorFunctions Set the functions used by this class to allocate/free memory used in the kernel...