mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-20 10:15:16 +00:00
25 lines
440 B
C
25 lines
440 B
C
|
#pragma once
|
||
|
|
||
|
#include "basis/seadTypes.h"
|
||
|
#include "container/seadListImpl.h"
|
||
|
#include "container/seadOffsetList.h"
|
||
|
|
||
|
namespace sead
|
||
|
{
|
||
|
class MemBlock
|
||
|
{
|
||
|
public:
|
||
|
static MemBlock* FindManageArea(void* ptr);
|
||
|
|
||
|
static u32 getOffset() { return offsetof(MemBlock, mListNode); }
|
||
|
|
||
|
protected:
|
||
|
ListNode mListNode;
|
||
|
u16 mHeapCheckTag;
|
||
|
u16 mOffset;
|
||
|
size_t mSize;
|
||
|
};
|
||
|
|
||
|
using MemBlockList = OffsetList<MemBlock>;
|
||
|
} // namespace sead
|