NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/mLib/m_allocator.hpp>
An allocator class that wraps an EGG:Allocator .
Definition at line 8 of file m_allocator.hpp.
Public Member Functions | |
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) |
Static Public Member Functions | |
static void | init (EGG::Heap *heap) |
Additional Inherited Members | |
![]() | |
EGG::Heap * | mpHeap |
int | mAlign |
![]() | |
const struct _MEMAllocatorFuncs * | mpFuncs |
void * | mpHeapHandle |
u32 | mAlignment |
u32 | mUnused |
mAllocator_c::mAllocator_c | ( | ) |
Constructs a new allocator.
Definition at line 60 of file m_allocator.cpp.
|
virtual |
Destroys the allocator.
Definition at line 63 of file m_allocator.cpp.
|
virtual |
Definition at line 75 of file m_allocator.cpp.
|
virtual |
Reimplemented from EGG::Allocator.
Definition at line 79 of file m_allocator.cpp.
bool mAllocator_c::attach | ( | EGG::Heap * | heap, |
int | alignment ) |
Definition at line 65 of file m_allocator.cpp.
|
static |
Definition at line 83 of file m_allocator.cpp.