| 89 | : OutputStream(listener), out_(out) {} |
| 90 | |
| 91 | void write(const char* s, std::streamsize count) override { |
| 92 | out_->write(s, count); |
| 93 | if (listener_) { |
| 94 | listener_->onWrite(s, count); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | std::streampos tellp() const override { |
| 99 | return out_->tellp(); |