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

Method allocTail

libs/JSystem/JKernel/JKRAramBlock.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37JKRAramBlock *JKRAramBlock::allocTail(u32 newSize, u8 newGroupID, JKRAramHeap *heap)
38{
39 u32 newAddress = mAddress + mSize + mFreeSize - newSize;
40 JKRAramBlock *block = new (heap->getMgrHeap(), 0) JKRAramBlock(newAddress, newSize, 0, newGroupID, true);
41 mFreeSize -= newSize;
42 mLink.getList()->insert(mLink.getNext(), &block->mLink);
43 return block;
44}

Callers 1

allocFromTailMethod · 0.45

Calls 4

getMgrHeapMethod · 0.80
insertMethod · 0.45
getListMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected