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

Function io___RandomAccessFile__Read0

r/src/io.cpp:78–85  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

76
77// [[arrow::export]]
78std::shared_ptr<arrow::Buffer> io___RandomAccessFile__Read0(
79 const std::shared_ptr<arrow::io::RandomAccessFile>& x) {
80 int64_t current = ValueOrStop(x->Tell());
81
82 int64_t n = ValueOrStop(x->GetSize());
83
84 return ValueOrStop(x->Read(n - current));
85}
86
87// [[arrow::export]]
88std::shared_ptr<arrow::Buffer> io___RandomAccessFile__ReadAt(

Callers 1

Calls 4

ValueOrStopFunction · 0.85
TellMethod · 0.45
GetSizeMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected