mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Fix ReadBuffer
This commit is contained in:
parent
678bdc0ba6
commit
3a4b22c6b1
1 changed files with 3 additions and 3 deletions
|
@ -441,7 +441,7 @@ namespace System.IO
|
|||
bytePos = byteLen = 0;*/
|
||||
}
|
||||
|
||||
return mCharLen;
|
||||
return mCharLen - mCharPos;
|
||||
}
|
||||
|
||||
mByteLen += len;
|
||||
|
@ -461,7 +461,7 @@ namespace System.IO
|
|||
//Contract.Assert(byteLen >= 0, "Stream.Read returned a negative number! This is a bug in your stream class.");
|
||||
|
||||
if (mByteLen == 0) // We're at EOF
|
||||
return mCharLen;
|
||||
return mCharLen - mCharPos;
|
||||
}
|
||||
|
||||
// _isBlocked == whether we read fewer bytes than we asked for.
|
||||
|
@ -510,7 +510,7 @@ namespace System.IO
|
|||
while (mCharLen == mCharPos);
|
||||
|
||||
//Console.WriteLine("ReadBuffer called. chars: "+char8Len);
|
||||
return mCharLen;
|
||||
return mCharLen - mCharPos;
|
||||
}
|
||||
|
||||
int GetChars(uint8[] byteBuffer, int byteOffset, int byteLength, char8[] char8Buffer, int char8Offset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue