From 530c6109ea786a8eefe959dc68b455dd6f4f25f0 Mon Sep 17 00:00:00 2001 From: Edmand46 Date: Sun, 29 May 2022 16:36:25 +0400 Subject: [PATCH] fixed: serializer resize --- Ragon.Common/Protocol/RagonSerializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ragon.Common/Protocol/RagonSerializer.cs b/Ragon.Common/Protocol/RagonSerializer.cs index 105fabf..f62f4ad 100644 --- a/Ragon.Common/Protocol/RagonSerializer.cs +++ b/Ragon.Common/Protocol/RagonSerializer.cs @@ -183,7 +183,7 @@ namespace Ragon.Common if (_offset + lenght < _data.Length) return; - var newData = new byte[_data.Length * 2]; + var newData = new byte[_data.Length * 2 + lenght]; Buffer.BlockCopy(_data, 0, newData, 0, _data.Length); _data = newData; }