| 2944 | } |
| 2945 | |
| 2946 | Result<int64_t> IoRecordedRandomAccessFile::Read(int64_t nbytes, void* out) { |
| 2947 | ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, ReadAt(position_, nbytes, out)); |
| 2948 | position_ += bytes_read; |
| 2949 | return bytes_read; |
| 2950 | } |
| 2951 | |
| 2952 | Result<std::shared_ptr<Buffer>> IoRecordedRandomAccessFile::Read(int64_t nbytes) { |
| 2953 | ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Buffer> buffer, ReadAt(position_, nbytes)); |