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.

IMqttPacketSerializer.cs 344 B

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