public static void writeUnicodeString(LittleEndianOutput out, String value) {int nChars = value.length();out.writeShort(nChars);boolean is16Bit = hasMultibyte(value);out.writeByte(is16Bit ? 0x01 : 0x00);if (is16Bit) {putUnicodeLE(value, out);} else {putCompressedUnicode(value, out);}}
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);}}