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

Method copyBufferToNewInternalBuffer

src/CppUTest/SimpleString.cpp:250–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void SimpleString::copyBufferToNewInternalBuffer(const char* otherBuffer, size_t bufferSize)
251{
252 deallocateInternalBuffer();
253
254 bufferSize_ = bufferSize;
255 buffer_ = copyToNewBuffer(otherBuffer, bufferSize_);
256}
257
258void SimpleString::setInternalBufferToNewBuffer(size_t bufferSize)
259{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected