NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
mAllocator_c Class Reference

#include <game/mLib/m_allocator.hpp>

Inheritance diagram for mAllocator_c:
[legend]

Description

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::HeapmpHeap
 
int mAlign
 
- Public Attributes inherited from MEMAllocator
const struct _MEMAllocatorFuncsmpFuncs
 
void * mpHeapHandle
 
u32 mAlignment
 
u32 mUnused
 

Constructor & Destructor Documentation

◆ mAllocator_c()

mAllocator_c::mAllocator_c ( )

Constructs a new allocator.

Definition at line 60 of file m_allocator.cpp.

◆ ~mAllocator_c()

mAllocator_c::~mAllocator_c ( )
virtual

Destroys the allocator.

Definition at line 63 of file m_allocator.cpp.

Member Function Documentation

◆ alloc()

void * mAllocator_c::alloc ( size_t size)
virtual

Definition at line 75 of file m_allocator.cpp.

◆ free()

void mAllocator_c::free ( void * ptr)
virtual

Reimplemented from EGG::Allocator.

Definition at line 79 of file m_allocator.cpp.

◆ attach()

bool mAllocator_c::attach ( EGG::Heap * heap,
int alignment )

Definition at line 65 of file m_allocator.cpp.

◆ init()

void mAllocator_c::init ( EGG::Heap * heap)
static

Definition at line 83 of file m_allocator.cpp.