mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
32 lines
527 B
C#
32 lines
527 B
C#
using System;
|
|
|
|
namespace MQTTnet.Formatter
|
|
{
|
|
public interface IMqttPacketBodyReader
|
|
{
|
|
int Length { get; }
|
|
|
|
int Offset { get; }
|
|
|
|
bool EndOfStream { get; }
|
|
|
|
byte ReadByte();
|
|
|
|
byte[] ReadRemainingData();
|
|
|
|
ushort ReadTwoByteInteger();
|
|
|
|
string ReadStringWithLengthPrefix();
|
|
|
|
byte[] ReadWithLengthPrefix();
|
|
|
|
uint ReadFourByteInteger();
|
|
|
|
uint ReadVariableLengthInteger();
|
|
|
|
bool ReadBoolean();
|
|
|
|
void Seek(int position);
|
|
}
|
|
}
|