MCPcopy Create free account
hub / github.com/cpputest/cpputest / clearCache

Method clearCache

src/CppUTest/SimpleStringInternalCache.cpp:228–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void SimpleStringInternalCache::clearCache()
229{
230 for (size_t i = 0; i < amountOfInternalCacheNodes; i++) {
231 destroySimpleStringMemoryBlockList(cache_[i].freeMemoryHead_, cache_[i].size_);
232 cache_[i].freeMemoryHead_ = NULLPTR;
233 }
234}
235
236void SimpleStringInternalCache::clearAllIncludingCurrentlyUsedMemory()
237{

Callers 2

TESTFunction · 0.80
teardownFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
teardownFunction · 0.64