| 1874 | bool closed() const override { return closed_; } |
| 1875 | |
| 1876 | Result<int64_t> Tell() const override { |
| 1877 | if (closed_) { |
| 1878 | return Status::Invalid("Operation on closed stream"); |
| 1879 | } |
| 1880 | return pos_; |
| 1881 | } |
| 1882 | |
| 1883 | Status Write(const std::shared_ptr<Buffer>& buffer) override { |
| 1884 | return DoWrite(buffer->data(), buffer->size(), buffer); |