using System; using System.IO; using MQTTnet.Packets; namespace MQTTnet.Serializer { public interface IMqttPacketSerializer { MqttProtocolVersion ProtocolVersion { get; set; } ArraySegment Serialize(MqttBasePacket mqttPacket); MqttBasePacket Deserialize(MqttPacketHeader header, Stream body); } }