mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkReader: remove byte[] constructor, implicit ArraySegment constructor is enough
This commit is contained in:
parent
c9642dbbb2
commit
0ffa971413
@ -31,11 +31,6 @@ public class NetworkReader
|
||||
[Obsolete("NetworkReader.Length was renamed to Capacity")] // 2022-09-25
|
||||
public int Length => Capacity;
|
||||
|
||||
public NetworkReader(byte[] bytes)
|
||||
{
|
||||
buffer = new ArraySegment<byte>(bytes);
|
||||
}
|
||||
|
||||
public NetworkReader(ArraySegment<byte> segment)
|
||||
{
|
||||
buffer = segment;
|
||||
|
Loading…
Reference in New Issue
Block a user