| 8 | |
| 9 | template <typename TCharType> |
| 10 | static void WriteString(IOutputStream& o, const TCharType* w, size_t n) { |
| 11 | const size_t buflen = (n * MAX_UTF8_BYTES); // * 4 because the conversion functions can convert unicode character into maximum 4 bytes of UTF8 |
| 12 | TTempBuf buffer(buflen + 1); |
| 13 | size_t written = 0; |
| 14 | WideToUTF8(w, n, buffer.Data(), written); |
| 15 | o.Write(buffer.Data(), written); |
| 16 | } |
| 17 | |
| 18 | template <> |
| 19 | void Out<TCowString>(IOutputStream& o, const TCowString& p) { |
no test coverage detected