| 134 | } |
| 135 | |
| 136 | Result<int64_t> ReadAt(int64_t position, int64_t nbytes, void* out) { |
| 137 | RETURN_NOT_OK(CheckClosed()); |
| 138 | RETURN_NOT_OK(internal::ValidateRange(position, nbytes)); |
| 139 | // ReadAt() leaves the file position undefined, so require that we seek |
| 140 | // before calling Read() or Write(). |
| 141 | need_seeking_.store(true); |
| 142 | return ::arrow::internal::FileReadAt(fd_.fd(), reinterpret_cast<uint8_t*>(out), |
| 143 | position, nbytes); |
| 144 | } |
| 145 | |
| 146 | Status Seek(int64_t pos) { |
| 147 | RETURN_NOT_OK(CheckClosed()); |
nothing calls this directly
no test coverage detected