NetworkReader: remove byte[] constructor, implicit ArraySegment constructor is enough

This commit is contained in:
vis2k 2022-09-25 12:46:47 +07:00
parent c9642dbbb2
commit 0ffa971413

View File

@ -31,11 +31,6 @@ public class NetworkReader
[Obsolete("NetworkReader.Length was renamed to Capacity")] // 2022-09-25 [Obsolete("NetworkReader.Length was renamed to Capacity")] // 2022-09-25
public int Length => Capacity; public int Length => Capacity;
public NetworkReader(byte[] bytes)
{
buffer = new ArraySegment<byte>(bytes);
}
public NetworkReader(ArraySegment<byte> segment) public NetworkReader(ArraySegment<byte> segment)
{ {
buffer = segment; buffer = segment;