-Performance

-Add CLSCompliant attributes
-Fix BSON string reading bug
This commit is contained in:
JamesNK
2010-05-11 07:49:02 +00:00
parent 6c817fee93
commit fc6c041196
13 changed files with 184 additions and 55 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ namespace Newtonsoft.Json.Bson
{
int count = ((length - totalBytesRead) > MaxCharBytesSize - offset)
? MaxCharBytesSize - offset
: length - totalBytesRead;
: length - totalBytesRead - offset;
int byteCount = _reader.BaseStream.Read(_byteBuffer, offset, count);