| 121 | } |
| 122 | |
| 123 | bool TFile::CloseWrite(const STRING& filename, FileWriter writer) { |
| 124 | ASSERT_HOST(is_writing_); |
| 125 | if (writer == NULL) |
| 126 | return SaveDataToFile(*data_, filename); |
| 127 | else |
| 128 | return (*writer)(*data_, filename); |
| 129 | } |
| 130 | |
| 131 | int TFile::FWrite(const void* buffer, int size, int count) { |
| 132 | ASSERT_HOST(is_writing_); |
no test coverage detected