ReadBinary method

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

Syntax
Visual Basic
Public Function ReadBinary( _
   ByVal bytes As Byte(), _
   ByVal len As Integer _
) As Integer
C#
public int ReadBinary(
   byte[] bytes,
   int len
);
Parameters
  • bytes   The byte array that contains the read bytes.

  • len   The maximum number of bytes to read.

Return value

The number of bytes read from the message body.

Exceptions
  • QAException class - Thrown if there was a conversion error reading the value or if there is no more input.

See also