MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / AllocContext

Method AllocContext

Libraries/unrar/suballoc.cpp:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247void* SubAllocator::AllocContext()
248{
249 if (HiUnit != LoUnit)
250 return (HiUnit -= UNIT_SIZE);
251 if ( FreeList->next )
252 return RemoveNode(0);
253 return AllocUnitsRare(0);
254}
255
256
257void* SubAllocator::ExpandUnits(void* OldPtr,int OldNU)

Callers 2

createChildMethod · 0.80
RestartModelRareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected