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

Method add

src/CppUTest/MemoryLeakDetector.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void SimpleStringBuffer::add(const char* format, ...)
50{
51 const size_t positions_left = write_limit_ - positions_filled_;
52 if (positions_left == 0) return;
53
54 va_list arguments;
55 va_start(arguments, format);
56 const int count = PlatformSpecificVSNprintf(buffer_ + positions_filled_, positions_left+1, format, arguments);
57 if (count > 0) positions_filled_ += (size_t) count;
58 if (positions_filled_ > write_limit_) positions_filled_ = write_limit_;
59 va_end(arguments);
60}
61
62void SimpleStringBuffer::addMemoryDump(const void* memory, size_t memorySize)
63{

Callers 9

addAllocationLocationMethod · 0.45
reportMemoryLeakMethod · 0.45
addMemoryLeakHeaderMethod · 0.45
addMemoryLeakFooterMethod · 0.45
reportFailureMethod · 0.45

Calls 1

Tested by

no test coverage detected