| 702 | } |
| 703 | |
| 704 | Result<int64_t> MemoryMappedFile::Read(int64_t nbytes, void* out) { |
| 705 | RETURN_NOT_OK(memory_map_->CheckClosed()); |
| 706 | ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, ReadAt(memory_map_->position(), nbytes, out)); |
| 707 | memory_map_->advance(bytes_read); |
| 708 | return bytes_read; |
| 709 | } |
| 710 | |
| 711 | Result<std::shared_ptr<Buffer>> MemoryMappedFile::Read(int64_t nbytes) { |
| 712 | RETURN_NOT_OK(memory_map_->CheckClosed()); |
no test coverage detected