SuperMarioOdysseyOnline/include/sead/heap/seadMemBlock.h
2022-06-16 14:33:18 -07:00

24 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