| 201 | } |
| 202 | |
| 203 | bool 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 | |
| 215 | void cmProcess::OnReadCB(uv_stream_t* stream, ssize_t nread, |
| 216 | uv_buf_t const* buf) |