NetworkReader should enforce read only (#580)

This commit is contained in:
Paul Pacheco 2019-03-10 12:04:45 -05:00 committed by GitHub
parent 4aa1a4b169
commit 092c5663b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ public class NetworkReader
public NetworkReader(byte[] buffer)
{
reader = new BinaryReader(new MemoryStream(buffer));
reader = new BinaryReader(new MemoryStream(buffer, false));
}
// 'int' is the best type for .Position. 'short' is too small if we send >32kb which would result in negative .Position