| 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) { |