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

Method removeNextNodeAndReturnSize

src/CppUTest/TestMemoryAllocator.cpp:642–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642size_t AccountingTestMemoryAllocator::removeNextNodeAndReturnSize(AccountingTestMemoryAllocatorMemoryNode* node)
643{
644 AccountingTestMemoryAllocatorMemoryNode* foundNode = node->next_;
645 node->next_ = node->next_->next_;
646
647 size_t size = foundNode->size_;
648 originalAllocator_->free_memory((char*) foundNode, size, __FILE__, __LINE__);
649 return size;
650}
651
652size_t AccountingTestMemoryAllocator::removeHeadAndReturnSize()
653{

Callers

nothing calls this directly

Calls 1

free_memoryMethod · 0.45

Tested by

no test coverage detected