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