MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getUsedSize

Method getUsedSize

libs/JSystem/JKernel/JKRExpHeap.cpp:595–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595s32 JKRExpHeap::getUsedSize(u8 groupId) const
596{
597 JKRExpHeap *this2 = const_cast<JKRExpHeap *>(this);
598 this2->lock();
599 u32 size = 0;
600 for (CMemBlock *block = mHeadUsedList; block; block = block->mNext)
601 {
602 u8 blockGroupId = block->mGroupID;
603 if (blockGroupId == groupId)
604 {
605 size += block->mAllocatedSpace + sizeof(CMemBlock);
606 }
607 }
608 this2->unlock();
609 return size;
610}
611
612bool JKRExpHeap::isEmpty()
613{

Callers 4

drawHeapSpecMethod · 0.45
state_compareMethod · 0.45
state_dumpDifferenceMethod · 0.45
state_dumpMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected