You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
336 B

  1. using System.IO;
  2. using MQTTnet.Core.Packets;
  3. namespace MQTTnet.Core.Serializer
  4. {
  5. public interface IMqttPacketSerializer
  6. {
  7. MqttProtocolVersion ProtocolVersion { get; set; }
  8. byte[] Serialize(MqttBasePacket mqttPacket);
  9. MqttBasePacket Deserialize(MqttPacketHeader header, MemoryStream stream);
  10. }
  11. }