Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将字符串值附加到 QABinaryMessage 实例的消息主体中。
void QABinaryMessage.writeString(String val) throws QAException
val 要写入消息主体的字符串值。
QAException 类 如果将字符串值附加到消息主体时存在问题,则抛出异常。
接收应用程序需要为每个 writeString 调用而调用 QABinaryMessage.readString。
要写入的字符串的 UTF-8 表示形式最多可为 32767 个字节。