| 694 | } |
| 695 | |
| 696 | Result<int64_t> MemoryMappedFile::Read(int64_t nbytes, void* out) { |
| 697 | RETURN_NOT_OK(memory_map_->CheckClosed()); |
| 698 | ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, ReadAt(memory_map_->position(), nbytes, out)); |
| 699 | memory_map_->advance(bytes_read); |
| 700 | return bytes_read; |
| 701 | } |
| 702 | |
| 703 | Result<std::shared_ptr<Buffer>> MemoryMappedFile::Read(int64_t nbytes) { |
| 704 | RETURN_NOT_OK(memory_map_->CheckClosed()); |
no test coverage detected