NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
eggHeap.hpp
1#pragma once
2#include <lib/rvl/mem/MEMHeapCommon.h>
3
4class Allocator;
5
6// [TODO: extend this]
7
8namespace EGG {
9 class Heap {
10 public:
11 virtual ~Heap();
12 virtual int getHeapKind() const = 0;
13 virtual void initAllocator(Allocator* allocator, s32 align) = 0;
14 virtual void *alloc(unsigned long, int) = 0;
15 virtual void free(void *) = 0;
16 virtual void destroy() = 0;
17
18 static void *alloc(unsigned long, int, EGG::Heap *);
19 static void free(void *, EGG::Heap *);
20
21 char mPad[0xc];
22 MEMiHeapHeader *mpHeapHead;
23 };
24}