| 74 | |
| 75 | template <typename TCharType> |
| 76 | static void WriteString(IOutputStream& o, const TCharType* w, size_t n) { |
| 77 | const size_t buflen = (n * MAX_UTF8_BYTES); // * 4 because the conversion functions can convert unicode character into maximum 4 bytes of UTF8 |
| 78 | TTempBuf buffer(buflen + 1); |
| 79 | size_t written = 0; |
| 80 | WideToUTF8(w, n, buffer.Data(), written); |
| 81 | o.Write(buffer.Data(), written); |
| 82 | } |
| 83 | |
| 84 | template <> |
| 85 | void Out<TString>(IOutputStream& o, const TString& p) { |
no test coverage detected