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

Method CheckPosition

cpp/src/arrow/filesystem/s3fs.cc:1527–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525 }
1526
1527 Status CheckPosition(int64_t position, const char* action) const {
1528 if (position < 0) {
1529 return Status::Invalid("Cannot ", action, " from negative position");
1530 }
1531 if (position > content_length_) {
1532 return Status::IOError("Cannot ", action, " past end of file");
1533 }
1534 return Status::OK();
1535 }
1536
1537 // RandomAccessFile APIs
1538

Callers

nothing calls this directly

Calls 3

IOErrorFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected