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

Method Seek

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

Source from the content-addressed store, hash-verified

151 }
152
153 Status Seek(int64_t pos) {
154 RETURN_NOT_OK(CheckClosed());
155 if (pos < 0) {
156 return Status::Invalid("Invalid position");
157 }
158 Status st = ::arrow::internal::FileSeek(fd_.fd(), pos);
159 if (st.ok()) {
160 need_seeking_.store(false);
161 }
162 return st;
163 }
164
165 Result<int64_t> Tell() const {
166 RETURN_NOT_OK(CheckClosed());

Callers

nothing calls this directly

Calls 6

FileSeekFunction · 0.85
storeMethod · 0.80
CheckClosedFunction · 0.70
InvalidFunction · 0.50
fdMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected