readBinary function

Syntax
qa_int QABinaryMessage::readBinary(
  qa_bytes value,
  qa_int length
)
Parameters
  • value   The buffer into which the data is read.

  • length   The maximum number of bytes to read.

Remarks

Reads a specified number of bytes starting from the unread portion of the QABinaryMessage instance's message body.

See Also

writeBinary function

Returns

The total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.