| 153 | } |
| 154 | |
| 155 | void CheckFile() const { |
| 156 | if (!File_.IsOpen()) { |
| 157 | ythrow yexception() << "TMemoryMap: FILE '" << DbgName_ << "' is not open, " << LastSystemErrorText(); |
| 158 | } |
| 159 | if (Length_ < 0) { |
| 160 | ythrow yexception() << "'" << DbgName_ << "' is not a regular file"; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | inline TImpl(FILE* f, EOpenMode om, TString dbgName) |
| 165 | : File_(Duplicate(f)) |
nothing calls this directly
no test coverage detected