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

Method ReadAt

cpp/src/arrow/io/file.cc:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 Result<int64_t> ReadAt(int64_t position, int64_t nbytes, void* out) {
137 RETURN_NOT_OK(CheckClosed());
138 RETURN_NOT_OK(internal::ValidateRange(position, nbytes));
139 // ReadAt() leaves the file position undefined, so require that we seek
140 // before calling Read() or Write().
141 need_seeking_.store(true);
142 return ::arrow::internal::FileReadAt(fd_.fd(), reinterpret_cast<uint8_t*>(out),
143 position, nbytes);
144 }
145
146 Status Seek(int64_t pos) {
147 RETURN_NOT_OK(CheckClosed());

Callers

nothing calls this directly

Calls 5

ValidateRangeFunction · 0.85
FileReadAtFunction · 0.85
storeMethod · 0.80
CheckClosedFunction · 0.70
fdMethod · 0.45

Tested by

no test coverage detected