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

Function FileTell

cpp/src/arrow/util/io_util.cc:1162–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160}
1161
1162Result<int64_t> FileTell(int fd) {
1163#if defined(_WIN32)
1164 int64_t current_pos = _telli64(fd);
1165 if (current_pos == -1) {
1166 return Status::IOError("_telli64 failed");
1167 }
1168 return current_pos;
1169#else
1170 return lseek64_compat(fd, 0, SEEK_CUR);
1171#endif
1172}
1173
1174Result<Pipe> CreatePipe() {
1175 bool ok;

Callers 3

TellMethod · 0.85
GetDebugLogSizeMethod · 0.85
FileGetSizeFunction · 0.85

Calls 2

IOErrorFunction · 0.85
lseek64_compatFunction · 0.85

Tested by 1

GetDebugLogSizeMethod · 0.68