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

Method DoReadAt

cpp/src/arrow/io/memory.cc:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323Result<int64_t> BufferReader::DoReadAt(int64_t position, int64_t nbytes, void* buffer) {
324 RETURN_NOT_OK(CheckClosed());
325
326 ARROW_ASSIGN_OR_RAISE(nbytes, internal::ValidateReadRange(position, nbytes, size_));
327 DCHECK_GE(nbytes, 0);
328 if (nbytes) {
329 memcpy(buffer, data_ + position, nbytes);
330 }
331 return nbytes;
332}
333
334Result<std::shared_ptr<Buffer>> BufferReader::DoReadAt(int64_t position, int64_t nbytes) {
335 RETURN_NOT_OK(CheckClosed());

Callers

nothing calls this directly

Calls 4

ValidateReadRangeFunction · 0.85
SliceBufferFunction · 0.85
CheckClosedFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50

Tested by

no test coverage detected