sead::HeapMgr class

Public types

using IAllocFailedCallback = IDelegate1<const AllocFailedCallbackArg*>
using RootHeaps = FixedPtrArray<Heap, 4>
using IndependentHeaps = FixedPtrArray<Heap, 4>

Public static variables

static Arena* sArena
static HeapMgr sInstance
static HeapMgr* sInstancePtr

Public static functions

static void initialize(size_t size)
static void initializeImpl_()
static void initialize(Arena* arena)
static void createRootHeap_()
static void destroy()
static auto isContainedInAnyHeap(const void* ptr) -> bool
static void dumpTreeYAML(WriteStream& stream)
static void removeFromFindContainHeapCache_(Heap* heap)
static auto findHeapByName_(Heap*, const SafeString&, int* index) -> Heap*
static void removeRootHeap(Heap*)
static auto instance() -> HeapMgr*
static auto getRootHeapNum() -> s32
static auto getRootHeap(s32 index) -> Heap*

Constructors, destructors, conversion operators

HeapMgr()
~HeapMgr() virtual

Public functions

void initHostIO()
auto findContainHeap(const void* ptr) const -> Heap*
void setAllocFromNotSeadThreadHeap(Heap* heap)
auto findHeapByName(const SafeString& name, int index) const -> Heap*
auto getCurrentHeap() const -> Heap*
auto setAllocFailedCallback(IAllocFailedCallback* callback) -> IAllocFailedCallback*
auto getAllocFailedCallback() -> IAllocFailedCallback*

Private functions

auto getNodeClassType() const -> NodeClassType override

Function documentation

NodeClassType sead::HeapMgr::getNodeClassType() const override