| 87 | bool BufferOutputStream::closed() const { return !is_open_; } |
| 88 | |
| 89 | Result<std::shared_ptr<Buffer>> BufferOutputStream::Finish() { |
| 90 | RETURN_NOT_OK(Close()); |
| 91 | buffer_->ZeroPadding(); |
| 92 | is_open_ = false; |
| 93 | return std::move(buffer_); |
| 94 | } |
| 95 | |
| 96 | Result<int64_t> BufferOutputStream::Tell() const { return position_; } |
| 97 |