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.
 
 
 
 

16 lines
397 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using MQTTnet.Packets;
  5. namespace MQTTnet.Serializer
  6. {
  7. public interface IMqttPacketSerializer
  8. {
  9. MqttProtocolVersion ProtocolVersion { get; set; }
  10. ICollection<ArraySegment<byte>> Serialize(MqttBasePacket mqttPacket);
  11. MqttBasePacket Deserialize(MqttPacketHeader header, MemoryStream body);
  12. }
  13. }