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