| 260 | } |
| 261 | |
| 262 | Result<int64_t> CudaBufferReader::DoReadAt(int64_t position, int64_t nbytes, |
| 263 | void* buffer) { |
| 264 | RETURN_NOT_OK(CheckClosed()); |
| 265 | |
| 266 | nbytes = std::min(nbytes, size_ - position); |
| 267 | RETURN_NOT_OK(context_->CopyDeviceToHost(buffer, address_ + position, nbytes)); |
| 268 | return nbytes; |
| 269 | } |
| 270 | |
| 271 | Result<int64_t> CudaBufferReader::DoRead(int64_t nbytes, void* buffer) { |
| 272 | RETURN_NOT_OK(CheckClosed()); |
nothing calls this directly
no test coverage detected