You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the Read function could use some love too, something like..
public override int Read(byte[] buffer, int offset, int count)
{
long pos = this.Position;
long len = this.Length;
int readBytes = (int)Math.Min(count, len - pos);
Array.Copy(srcByteArray, pos, buffer, offset, readBytes);
this.Position = pos + readBytes;
return readBytes;
}
https://github.com/KillaMaaki/ReliableNetcode.NET/blob/09fba6a45ebb6f0d9d2be23bcd15c65b40b6c773/ReliableNetcode/Utils/IO/ByteStream.cs#L198-L202
The text was updated successfully, but these errors were encountered: