fixed: serializer resize
This commit is contained in:
@@ -183,7 +183,7 @@ namespace Ragon.Common
|
|||||||
if (_offset + lenght < _data.Length)
|
if (_offset + lenght < _data.Length)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var newData = new byte[_data.Length * 2];
|
var newData = new byte[_data.Length * 2 + lenght];
|
||||||
Buffer.BlockCopy(_data, 0, newData, 0, _data.Length);
|
Buffer.BlockCopy(_data, 0, newData, 0, _data.Length);
|
||||||
_data = newData;
|
_data = newData;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user