MCPcopy Create free account
hub / github.com/apache/arrow / DoReadAt

Method DoReadAt

cpp/src/arrow/gpu/cuda_memory.cc:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262Result<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
271Result<int64_t> CudaBufferReader::DoRead(int64_t nbytes, void* buffer) {
272 RETURN_NOT_OK(CheckClosed());

Callers

nothing calls this directly

Calls 2

CheckClosedFunction · 0.70
CopyDeviceToHostMethod · 0.45

Tested by

no test coverage detected