| 832 | } |
| 833 | |
| 834 | Status CheckClosed(const char* action) const { |
| 835 | if (closed_) { |
| 836 | return Status::Invalid("Cannot ", action, " on closed file."); |
| 837 | } |
| 838 | return Status::OK(); |
| 839 | } |
| 840 | |
| 841 | Status CheckPosition(int64_t position, const char* action) const { |
| 842 | DCHECK_GE(content_length_, 0); |