| 73 | }; |
| 74 | |
| 75 | void cmUVPipeBuffer::reset() |
| 76 | { |
| 77 | if (this->UVPipe_.get()) { |
| 78 | this->EndFunction_ = nullptr; |
| 79 | this->DataFunction_ = nullptr; |
| 80 | this->Buffer_.clear(); |
| 81 | this->Buffer_.shrink_to_fit(); |
| 82 | this->UVPipe_.reset(); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | bool cmUVPipeBuffer::init(uv_loop_t* uv_loop) |
| 87 | { |