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

Method removeHeadAndReturnSize

src/CppUTest/TestMemoryAllocator.cpp:652–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652size_t AccountingTestMemoryAllocator::removeHeadAndReturnSize()
653{
654 AccountingTestMemoryAllocatorMemoryNode* foundNode = head_;
655 head_ = head_->next_;
656
657 size_t size = foundNode->size_;
658 originalAllocator_->free_memory((char*) foundNode, size, __FILE__, __LINE__);
659 return size;
660}
661
662size_t AccountingTestMemoryAllocator::removeMemoryFromTrackingAndReturnAllocatedSize(char* memory)
663{

Callers

nothing calls this directly

Calls 1

free_memoryMethod · 0.45

Tested by

no test coverage detected