mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
15 lines
344 B
C#
15 lines
344 B
C#
using System;
|
|
using System.IO;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.Serializer
|
|
{
|
|
public interface IMqttPacketSerializer
|
|
{
|
|
MqttProtocolVersion ProtocolVersion { get; set; }
|
|
|
|
ArraySegment<byte> Serialize(MqttBasePacket mqttPacket);
|
|
|
|
MqttBasePacket Deserialize(MqttPacketHeader header, Stream body);
|
|
}
|
|
} |