text: public static void WriteUnicodeString(ILittleEndianOutput out1, String value){int nChars = value.Length;out1.WriteShort(nChars);bool is16Bit = HasMultibyte(value);out1.WriteByte(is16Bit ? 0x01 : 0x00);if (is16Bit){PutUnicodeLE(value, out1);}else{PutCompressedUnicode(value, out1);}}