MCPcopy Create free account
hub / github.com/WheretIB/nullc / ClearMemory

Method ClearMemory

NULLC/StdLib.cpp:533–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void NULLC::ClearMemory()
534{
535 usedMemory = 0;
536
537 pool8.~ObjectBlockPool();
538 pool16.~ObjectBlockPool();
539 pool32.~ObjectBlockPool();
540 pool64.~ObjectBlockPool();
541 pool128.~ObjectBlockPool();
542 pool256.~ObjectBlockPool();
543 pool512.~ObjectBlockPool();
544
545 for(unsigned int i = 0; i < globalObjects.size(); i++)
546 NULLC::dealloc(globalObjects[i]);
547 globalObjects.clear();
548
549 finalizeList.clear();
550}
551
552void NULLC::ResetMemory()
553{

Callers

nothing calls this directly

Calls 3

~ObjectBlockPoolMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected