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

#include <game/mLib/m_allocator.hpp>

Inheritance diagram for mAllocator_c:
[legend]

Description

An allocator class that wraps an EGG:Allocator .

Definition at line 9 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)

Static Public Member Functions

static void init (EGG::Heap *heap)

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

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.