|
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) |
Public Member Functions inherited from EGG::Allocator | |
| Allocator (Heap *h, long l) | |
| virtual void * | alloc (unsigned long) |
Static Public Member Functions | |
| static void | init (EGG::Heap *heap) |
Additional Inherited Members | |
Public Attributes inherited from EGG::Allocator | |
| EGG::Heap * | mpHeap |
| int | mAlign |
Public Attributes inherited from MEMAllocator | |
| const MEMAllocatorFuncs * | funcs |
| MEMiHeapHead * | heap |
| u32 | heapParam1 |
| u32 | heapParam2 |
| 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.