Class MqttBufferReader
- Namespace
- MQTTnet.Formatter
- Assembly
- MQTTnet.dll
public sealed class MqttBufferReader
- Inheritance
-
MqttBufferReader
- Inherited Members
-
Constructors
public MqttBufferReader()
Properties
public int BytesLeft { get; }
Property Value
- int
public bool EndOfStream { get; }
Property Value
- bool
public int Position { get; }
Property Value
- int
Methods
public byte[] ReadBinaryData()
Returns
- byte[]
Returns
- byte
public uint ReadFourByteInteger()
Returns
- uint
ReadRemainingData()
public byte[] ReadRemainingData()
Returns
- byte[]
public string ReadString()
Returns
- string
public ushort ReadTwoByteInteger()
Returns
- ushort
public uint ReadVariableByteInteger()
Returns
- uint
public void Seek(int position)
Parameters
position
int
public void SetBuffer(ArraySegment<byte> buffer)
Parameters
buffer
ArraySegment<byte>
public void SetBuffer(byte[] buffer, int offset, int length)
Parameters
buffer
byte[]
offset
int
length
int