text: public void WriteStringData(String text){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }WriteContinueIfRequired(keepTogetherSize);WriteByte(optionFlags);WriteCharacterData(text, is16bitEncoded);}