feat: config for size of property

fix: websocket server now can receive large messages
fix: buffer resize on read array
This commit is contained in:
2024-08-17 10:29:27 +03:00
parent f7719e1bca
commit 5136f08dab
10 changed files with 56 additions and 30 deletions
+3 -3
View File
@@ -27,13 +27,13 @@ public class RagonProperty : RagonPayload
private uint[] _data;
public RagonProperty(int size, bool isFixed)
public RagonProperty(int size, bool isFixed, int limit)
{
Size = size;
IsFixed = isFixed;
IsDirty = false;
_data = new uint[128];
_data = new uint[limit / 4 + 1];
}
public void Read(RagonBuffer buffer)