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

Method alloc

libs/JSystem/JKernel/JKRHeap.cpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104void JKRHeap::destroy() { do_destroy(); }
105
106void *JKRHeap::alloc(u32 byteCount, int alignment, JKRHeap *heap)
107{
108 void *memory;
109 if (heap)
110 {
111 return heap->alloc(byteCount, alignment);
112 }
113 else if (sCurrentHeap)
114 {
115 return sCurrentHeap->alloc(byteCount, alignment);
116 }
117 return nullptr;
118}
119
120void *JKRHeap::alloc(u32 byteCount, int alignment)
121{

Callers 5

SysDebugMethod · 0.45
createMethod · 0.45
MyAllocFunction · 0.45
initMethod · 0.45
callCommand_AsyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected