| 161 | } |
| 162 | |
| 163 | std::string CSimpleFile::ReadStringN(size_t count) { |
| 164 | char buf[1024] = { }; |
| 165 | std::string str; |
| 166 | |
| 167 | while (count) { |
| 168 | size_t readCount = count > std::size(buf) ? std::size(buf) : count; |
| 169 | m_fFile.read(buf, readCount); |
| 170 | str.append(buf, readCount); |
| 171 | count -= readCount; |
| 172 | } |
| 173 | |
| 174 | return str; |
| 175 | } |
| 176 | |
| 177 | std::string CSimpleFile::ReadStringNull() |
| 178 | { |
no test coverage detected