| 1611 | } |
| 1612 | |
| 1613 | Result<int64_t> Read(int64_t nbytes, void* out) override { |
| 1614 | ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, ReadAt(pos_, nbytes, out)); |
| 1615 | pos_ += bytes_read; |
| 1616 | return bytes_read; |
| 1617 | } |
| 1618 | |
| 1619 | Result<std::shared_ptr<Buffer>> Read(int64_t nbytes) override { |
| 1620 | ARROW_ASSIGN_OR_RAISE(auto buffer, ReadAt(pos_, nbytes)); |