fixed: custom property wrong size

This commit is contained in:
2023-11-05 21:53:57 +03:00
parent 892558ab16
commit 5aa159ed2f
6 changed files with 21 additions and 13 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ namespace Ragon.Client
{
Serialize(_propertyBuffer);
buffer.FromBuffer(_propertyBuffer, _size);
buffer.CopyFrom(_propertyBuffer, _size);
return;
}
@@ -114,7 +114,7 @@ namespace Ragon.Client
var propertySize = (ushort) _propertyBuffer.WriteOffset;
buffer.WriteUShort(propertySize);;
buffer.FromBuffer(_propertyBuffer, propertySize);
buffer.CopyFrom(_propertyBuffer, propertySize);
}
internal void Read(RagonBuffer buffer)