| 40 | } |
| 41 | |
| 42 | OutputStream::~OutputStream() { |
| 43 | if (active_buffer_ != nullptr && active_buffer_ != buffer_.get()) { |
| 44 | active_buffer_->clear_output_stream(); |
| 45 | } |
| 46 | if (buffer_ != nullptr) { |
| 47 | buffer_->clear_output_stream(); |
| 48 | } |
| 49 | active_buffer_ = nullptr; |
| 50 | } |
| 51 | |
| 52 | void OutputStream::reset() { |
| 53 | flushed_bytes_ = 0; |
nothing calls this directly
no test coverage detected