| 150 | RandomAccessFile::RandomAccessFile() : interface_impl_(new Impl()) {} |
| 151 | |
| 152 | Result<int64_t> RandomAccessFile::ReadAt(int64_t position, int64_t nbytes, void* out) { |
| 153 | std::lock_guard<std::mutex> lock(interface_impl_->lock_); |
| 154 | RETURN_NOT_OK(Seek(position)); |
| 155 | return Read(nbytes, out); |
| 156 | } |
| 157 | |
| 158 | Result<std::shared_ptr<Buffer>> RandomAccessFile::ReadAt(int64_t position, |
| 159 | int64_t nbytes) { |