Open diaconesq opened 7 years ago
This line:
int currentNumberOfBytesRead = _innerStream.ReadByte();
ReadByte returns the value of the next byte in the stream, not the number of read bytes.
https://docs.microsoft.com/en-gb/dotnet/api/system.io.stream.readbyte?view=netframework-4.7.1#System_IO_Stream_ReadByte
This line:
ReadByte returns the value of the next byte in the stream, not the number of read bytes.
https://docs.microsoft.com/en-gb/dotnet/api/system.io.stream.readbyte?view=netframework-4.7.1#System_IO_Stream_ReadByte