mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-30 18:56:30 +08:00
Improve performance.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace MQTTnet.Formatter
|
||||
namespace MQTTnet.Formatter
|
||||
{
|
||||
public interface IMqttPacketBodyReader
|
||||
{
|
||||
|
||||
@@ -6,13 +6,13 @@ using MQTTnet.Exceptions;
|
||||
|
||||
namespace MQTTnet.Formatter
|
||||
{
|
||||
public class MqttPacketBodyReader : IMqttPacketBodyReader
|
||||
public sealed class MqttPacketBodyReader : IMqttPacketBodyReader
|
||||
{
|
||||
private readonly byte[] _buffer;
|
||||
private readonly int _initialOffset;
|
||||
private readonly int _length;
|
||||
readonly byte[] _buffer;
|
||||
readonly int _initialOffset;
|
||||
readonly int _length;
|
||||
|
||||
private int _offset;
|
||||
int _offset;
|
||||
|
||||
public MqttPacketBodyReader(byte[] buffer, int offset, int length)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user