3#include <lib/egg/allocator.hpp>
13 virtual void *alloc(
size_t size);
14 virtual void free(
void *ptr);
16 bool attach(
EGG::Heap *heap,
int alignment);
37 size_t adjustFrmHeap();
38 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.
bool createHeapRestoreCurrent(size_t size, EGG::Heap *parent, const char *name, u32 align, u32 opt)
mHeapAllocator_c()
Constructs a new heap allocator.
bool createHeap(size_t size, EGG::Heap *parent, const char *name, u32 align, u32 opt)