UnpackerReadUInt16 Method |
Reads next
UInt16 value from current stream.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [CLSCompliantAttribute(false)]
public virtual bool ReadUInt16(
out ushort result
)
<CLSCompliantAttribute(false)>
Public Overridable Function ReadUInt16 (
<OutAttribute> ByRef result As UShort
) As Boolean
public:
[CLSCompliantAttribute(false)]
virtual bool ReadUInt16(
[OutAttribute] unsigned short% result
)
[<CLSCompliantAttribute(false)>]
abstract ReadUInt16 :
result : uint16 byref -> bool
[<CLSCompliantAttribute(false)>]
override ReadUInt16 :
result : uint16 byref -> bool
Parameters
- result
- Type: SystemUInt16
The UInt16 value read from current stream to be stored when operation is succeeded.
Return Value
Type:
Booleantrue if expected value was read from stream;
false if no more data on the stream.
Note that this method throws exception for unexpected state. See exceptions section.
Exceptions See Also