| 313 | Result<int64_t> PyOutputStream::Tell() const { return position_; } |
| 314 | |
| 315 | Status PyOutputStream::Write(const void* data, int64_t nbytes) { |
| 316 | return SafeCallIntoPython([=]() { |
| 317 | position_ += nbytes; |
| 318 | return file_->Write(data, nbytes); |
| 319 | }); |
| 320 | } |
| 321 | |
| 322 | Status PyOutputStream::Write(const std::shared_ptr<Buffer>& buffer) { |
| 323 | return SafeCallIntoPython([=]() { |
nothing calls this directly
no test coverage detected