MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / freeBlocks

Method freeBlocks

Engine/source/core/dataChunker.cpp:85–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void DataChunker::freeBlocks(bool keepOne)
86{
87 while(mCurBlock && mCurBlock->next)
88 {
89 DataBlock *temp = mCurBlock->next;
90 dFree(mCurBlock);
91 mCurBlock = temp;
92 }
93 if (!keepOne)
94 {
95 if (mCurBlock) dFree(mCurBlock);
96 mCurBlock = NULL;
97 }
98 else if (mCurBlock)
99 {
100 mCurBlock->curIndex = 0;
101 mCurBlock->next = NULL;
102 }
103}

Callers 9

consoleAllocResetFunction · 0.45
console.cppFile · 0.45
resetMethod · 0.45
trashCacheMethod · 0.45
initMethod · 0.45
_destroyMethod · 0.45
clearMethod · 0.45
freeLineBuffersMethod · 0.45
freeResourcesMethod · 0.45

Calls 1

dFreeFunction · 0.50

Tested by

no test coverage detected