MCPcopy Create free account
hub / github.com/Kitware/CMake / GetLast

Method GetLast

Source/CTest/cmProcess.cxx:203–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool cmProcess::Buffer::GetLast(std::string& line)
204{
205 // Return the partial last line, if any.
206 if (!this->empty()) {
207 line.assign(this->data(), this->size());
208 this->First = this->Last = 0;
209 this->clear();
210 return true;
211 }
212 return false;
213}
214
215void cmProcess::OnReadCB(uv_stream_t* stream, ssize_t nread,
216 uv_buf_t const* buf)

Callers 1

OnReadMethod · 0.80

Calls 5

assignMethod · 0.80
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected