public void serialize(LittleEndianOutput out) {String formatString = getFormatString();out.writeShort(getIndexCode());out.writeShort(formatString.length());out.writeByte(field_3_hasMultibyte ? 0x01 : 0x00);if ( field_3_hasMultibyte ) {StringUtil.putUnicodeLE( formatString, out);}  else {StringUtil.putCompressedUnicode( formatString, out);}}

public override void Serialize(ILittleEndianOutput out1){String formatString = FormatString;out1.WriteShort(IndexCode);out1.WriteShort(formatString.Length);out1.WriteByte(field_3_hasMultibyte ? 0x01 : 0x00);if (field_3_hasMultibyte){StringUtil.PutUnicodeLE(formatString, out1);}else{StringUtil.PutCompressedUnicode(formatString, out1);}}
