NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/mLib/m_allocator.hpp>
An allocator with some helper functions that manage the heap from which it allocates memory.
Definition at line 25 of file m_allocator.hpp.
Public Member Functions | |
mHeapAllocator_c () | |
Constructs a new heap allocator. | |
virtual | ~mHeapAllocator_c () |
Destroys the heap allocator. | |
bool | createHeap (size_t size, EGG::Heap *parent, const char *name, u32 align, u32 opt) |
bool | createHeapRestoreCurrent (size_t size, EGG::Heap *parent, const char *name, u32 align, u32 opt) |
void | destroyHeap () |
destroys the underlying heap and replaces it with the dummy heap; | |
size_t | adjustFrmHeap () |
size_t | adjustFrmHeapRestoreCurrent () |
![]() | |
mAllocator_c () | |
Constructs a new allocator. | |
virtual | ~mAllocator_c () |
Destroys the allocator. | |
virtual void * | alloc (size_t size) |
virtual void | free (void *ptr) |
bool | attach (EGG::Heap *heap, int alignment) |
![]() | |
Allocator (Heap *h, long l) | |
virtual void * | alloc (unsigned long) |
Additional Inherited Members | |
![]() | |
static void | init (EGG::Heap *heap) |
![]() | |
EGG::Heap * | mpHeap |
int | mAlign |
![]() | |
const struct _MEMAllocatorFuncs * | mpFuncs |
void * | mpHeapHandle |
u32 | mAlignment |
u32 | mUnused |
mHeapAllocator_c::mHeapAllocator_c | ( | ) |
Constructs a new heap allocator.
Definition at line 87 of file m_allocator.cpp.
|
virtual |
Destroys the heap allocator.
Definition at line 89 of file m_allocator.cpp.
bool mHeapAllocator_c::createHeap | ( | size_t | size, |
EGG::Heap * | parent, | ||
const char * | name, | ||
u32 | align, | ||
u32 | opt ) |
Definition at line 93 of file m_allocator.cpp.
bool mHeapAllocator_c::createHeapRestoreCurrent | ( | size_t | size, |
EGG::Heap * | parent, | ||
const char * | name, | ||
u32 | align, | ||
u32 | opt ) |
Definition at line 122 of file m_allocator.cpp.
void mHeapAllocator_c::destroyHeap | ( | ) |
destroys the underlying heap and replaces it with the dummy heap;
Definition at line 104 of file m_allocator.cpp.
size_t mHeapAllocator_c::adjustFrmHeap | ( | ) |
Definition at line 112 of file m_allocator.cpp.
size_t mHeapAllocator_c::adjustFrmHeapRestoreCurrent | ( | ) |
Definition at line 132 of file m_allocator.cpp.