diff --git a/Ragon.Protocol/Sources/RagonBuffer.cs b/Ragon.Protocol/Sources/RagonBuffer.cs index 44a1452..5280758 100644 --- a/Ragon.Protocol/Sources/RagonBuffer.cs +++ b/Ragon.Protocol/Sources/RagonBuffer.cs @@ -405,6 +405,8 @@ namespace Ragon.Protocol public byte[] ToArray() { + Write(1, 1); + var data = new byte[Length]; int bucketsCount = (_write >> 5) + 1; int length = data.Length;