-Fixed BsonReader to use BinaryReader instead of base stream

This commit is contained in:
JamesNK
2012-01-19 08:30:00 +00:00
parent a9e100e0a7
commit cd424a7bc5
+1 -1
View File
@@ -721,7 +721,7 @@ namespace Newtonsoft.Json.Bson
? MaxCharBytesSize - offset
: length - totalBytesRead;
int byteCount = _reader.BaseStream.Read(_byteBuffer, offset, count);
int byteCount = _reader.Read(_byteBuffer, offset, count);
if (byteCount == 0)
throw new EndOfStreamException("Unable to read beyond the end of the stream.");