mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
14 lines
336 B
C#
14 lines
336 B
C#
using System.IO;
|
|
using MQTTnet.Core.Packets;
|
|
|
|
namespace MQTTnet.Core.Serializer
|
|
{
|
|
public interface IMqttPacketSerializer
|
|
{
|
|
MqttProtocolVersion ProtocolVersion { get; set; }
|
|
|
|
byte[] Serialize(MqttBasePacket mqttPacket);
|
|
|
|
MqttBasePacket Deserialize(MqttPacketHeader header, MemoryStream stream);
|
|
}
|
|
} |