| 253 | } |
| 254 | |
| 255 | Result<int64_t> PyReadableFile::ReadAt(int64_t position, int64_t nbytes, void* out) { |
| 256 | std::lock_guard<std::mutex> guard(file_->lock()); |
| 257 | return SafeCallIntoPython([=]() -> Result<int64_t> { |
| 258 | RETURN_NOT_OK(Seek(position)); |
| 259 | return Read(nbytes, out); |
| 260 | }); |
| 261 | } |
| 262 | |
| 263 | Result<std::shared_ptr<Buffer>> PyReadableFile::ReadAt(int64_t position, int64_t nbytes) { |
| 264 | std::lock_guard<std::mutex> guard(file_->lock()); |
nothing calls this directly
no test coverage detected