Reads an unsigned 16-bit number from the bytes message stream.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Function ReadUnsignedShort As Integer |
| C# |
|---|
int ReadUnsignedShort() |
| Visual C++ |
|---|
int ReadUnsignedShort() |
Return Value
the next two bytes from the bytes message stream, interpreted as an unsigned 16-bit integer
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to read the message due to some internal error. |
| Kaazing.JMS..::..MessageEOFException | if unexpected end of bytes stream has been reached. |
| Kaazing.JMS..::..MessageNotReadableException | if the message is in write-only mode. |