3#include <game/mLib/m_heap.hpp>
4#include <lib/egg/core/eggAllocator.h>
14 virtual void *alloc(
size_t size);
15 virtual void free(
void *ptr);
17 bool attach(EGG::Heap *heap,
int alignment);
19 static void init(EGG::Heap *heap);
31 bool createFrmHeap(
size_t size, EGG::Heap *parent,
const char *name, ulong align,
mHeap::AllocOptBit_t opt);
32 bool createFrmHeapToCurrent(
size_t size, EGG::Heap *parent,
const char *name, ulong align,
mHeap::AllocOptBit_t opt);
35 size_t adjustFrmHeap();
36 size_t adjustFrmHeapRestoreCurrent();
mAllocator_c()
Constructs a new allocator.
virtual ~mAllocator_c()
Destroys the allocator.
void destroyHeap()
Destroys the underlying heap and replaces it with the dummy heap.
virtual ~mHeapAllocator_c()
Destroys the heap allocator.
mHeapAllocator_c()
Constructs a new heap allocator.
AllocOptBit_t
Bit flags controlling heap allocation behavior. These flags are translated into internal MEM heap fla...