Fixed wrong buffer size calculation.

This commit is contained in:
Christian
2021-01-29 23:10:40 +01:00
parent f3f1d81b52
commit b88924bce5
+2 -1
View File
@@ -14,7 +14,8 @@ namespace MQTTnet.Formatter
public sealed class MqttPacketWriter : IMqttPacketWriter
{
public static int InitialBufferSize = 4096;
public static int MaxBufferSize = 4096 + 4;
public static int MaxBufferSize = 4096 * 4;
byte[] _buffer = new byte[InitialBufferSize];