| 118 | } |
| 119 | |
| 120 | Result<std::shared_ptr<io::OutputStream>> Buffer::GetWriter(std::shared_ptr<Buffer> buf) { |
| 121 | if (!buf->is_mutable()) { |
| 122 | return Status::Invalid("Expected mutable buffer"); |
| 123 | } |
| 124 | return buf->memory_manager_->GetBufferWriter(std::move(buf)); |
| 125 | } |
| 126 | |
| 127 | Result<std::shared_ptr<Buffer>> Buffer::Copy(std::shared_ptr<Buffer> source, |
| 128 | const std::shared_ptr<MemoryManager>& to) { |
nothing calls this directly
no test coverage detected