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

Method CheckClosed

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

Source from the content-addressed store, hash-verified

443 bool closed() const { return !file_->is_open(); }
444
445 Status CheckClosed() const {
446 if (closed()) {
447 return Status::Invalid("Invalid operation on closed file");
448 }
449 return Status::OK();
450 }
451
452 Status Open(const std::string& path, FileMode::type mode, const int64_t offset = 0,
453 const int64_t length = -1) {

Callers

nothing calls this directly

Calls 3

closedFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected