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

Method createSimpleStringMemoryBlock

src/CppUTest/SimpleStringInternalCache.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101SimpleStringMemoryBlock* SimpleStringInternalCache::createSimpleStringMemoryBlock(size_t size, SimpleStringMemoryBlock* next)
102{
103 SimpleStringMemoryBlock* block = (SimpleStringMemoryBlock*) (void*) allocator_->alloc_memory(sizeof(SimpleStringMemoryBlock) , __FILE__, __LINE__);
104 block->memory_ = allocator_->alloc_memory(size , __FILE__, __LINE__);
105 block->next_ = next;
106 return block;
107}
108
109void SimpleStringInternalCache::destroySimpleStringMemoryBlock(SimpleStringMemoryBlock * block, size_t size)
110{

Callers

nothing calls this directly

Calls 1

alloc_memoryMethod · 0.45

Tested by

no test coverage detected