| 149 | } |
| 150 | |
| 151 | void CDocumentFile::WriteStringPadded(std::string_view sv, std::size_t n) { |
| 152 | sv = sv.substr(0, n - 1); |
| 153 | WriteBlock({(const unsigned char *)sv.data(), sv.size()}); |
| 154 | for (std::size_t i = sv.size(); i < n; ++i) |
| 155 | WriteBlockChar(0); |
| 156 | } |
| 157 | |
| 158 | void CDocumentFile::WriteStringCounted(std::string_view sv) { |
| 159 | WriteBlockInt(sv.size()); |
no test coverage detected