| 716 | } |
| 717 | |
| 718 | Future<std::shared_ptr<Buffer>> MemoryMappedFile::ReadAsync(const IOContext&, |
| 719 | int64_t position, |
| 720 | int64_t nbytes) { |
| 721 | return Future<std::shared_ptr<Buffer>>::MakeFinished(ReadAt(position, nbytes)); |
| 722 | } |
| 723 | |
| 724 | Status MemoryMappedFile::WillNeed(const std::vector<ReadRange>& ranges) { |
| 725 | using ::arrow::internal::MemoryRegion; |