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

Method ReadAt

python/pyarrow/src/arrow/python/io.cc:255–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255Result<int64_t> PyReadableFile::ReadAt(int64_t position, int64_t nbytes, void* out) {
256 std::lock_guard<std::mutex> guard(file_->lock());
257 return SafeCallIntoPython([=]() -> Result<int64_t> {
258 RETURN_NOT_OK(Seek(position));
259 return Read(nbytes, out);
260 });
261}
262
263Result<std::shared_ptr<Buffer>> PyReadableFile::ReadAt(int64_t position, int64_t nbytes) {
264 std::lock_guard<std::mutex> guard(file_->lock());

Callers

nothing calls this directly

Calls 2

SafeCallIntoPythonFunction · 0.85
ReadFunction · 0.50

Tested by

no test coverage detected