Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
以给定偏移为起点将字节数组的长度字节附加到 QABinaryMessage 实例的消息主体中。
void QABinaryMessage.writeBinary( byte[] val, int offset, int length ) throws QAException
val 写入消息主体的字节数组值。
offset 要开始写入的字节数组内的偏移。
length 要写入的字节数。
QAException 类 如果将字节数组附加到消息主体时存在问题,则抛出异常。
如果 val 为空值,则抛出 NullPointerException。如果 offset 为负值,或者 length 为负值,或者 length+offset 大于 val 的长度,则抛出 IndexOutOfBoundsException。