SuperMarioOdysseyOnline/include/sead/heap/seadMemBlock.h

25 lines
440 B
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
#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