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

Method dealloc

src/CppUTest/SimpleStringInternalCache.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void SimpleStringInternalCache::dealloc(char* memory, size_t size)
218{
219 if (isCached(size)) {
220 size_t index = getIndexForCache(size);
221 SimpleStringInternalCacheNode* cacheNode = &cache_[index];
222 releaseCachedBlockFrom(memory, cacheNode);
223 return;
224 }
225 releaseNonCachedMemory(memory, size);
226}
227
228void SimpleStringInternalCache::clearCache()
229{

Callers 1

free_memoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected