From 689a240e5b2cd226f4e6b9dc69a45656bb128d1c Mon Sep 17 00:00:00 2001 From: edmand46 Date: Thu, 12 Oct 2023 15:35:40 +0300 Subject: [PATCH] :bug: lost piece of data --- Ragon.Protocol/Sources/RagonBuffer.cs | 2 ++ 1 file changed, 2 insertions(+) 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;