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

Method DoSeek

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

Source from the content-addressed store, hash-verified

249}
250
251Status CudaBufferReader::DoSeek(int64_t position) {
252 RETURN_NOT_OK(CheckClosed());
253
254 if (position < 0 || position > size_) {
255 return Status::IOError("Seek out of bounds");
256 }
257
258 position_ = position;
259 return Status::OK();
260}
261
262Result<int64_t> CudaBufferReader::DoReadAt(int64_t position, int64_t nbytes,
263 void* buffer) {

Callers

nothing calls this directly

Calls 3

IOErrorFunction · 0.85
CheckClosedFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected