11 writes to byteLen
mscorlib (11)
system\io\streamreader.cs (11)
252
byteLen
= 0;
323
byteLen
= 0;
470
byteLen
-= n;
571
byteLen
= 0;
585
bytePos =
byteLen
= 0;
591
byteLen
+= len;
595
byteLen
= stream.Read(byteBuffer, 0, byteBuffer.Length);
638
byteLen
= 0;
680
byteLen
+= len;
685
byteLen
= stream.Read(byteBuffer, 0, byteBuffer.Length);
1140
set {
byteLen
= value; }
26 references to byteLen
mscorlib (26)
system\io\streamreader.cs (26)
468
Contract.Assert(
byteLen
>= n, "CompressBuffer was called with a number of bytes greater than the current buffer length. Are two threads using this StreamReader at the same time?");
469
Buffer.InternalBlockCopy(byteBuffer, n, byteBuffer, 0,
byteLen
- n);
475
if (
byteLen
< 2)
489
if (
byteLen
< 4 || byteBuffer[2] != 0 || byteBuffer[3] != 0) {
503
else if (
byteLen
>= 3 && byteBuffer[0]==0xEF && byteBuffer[1]==0xBB && byteBuffer[2]==0xBF) {
510
else if (
byteLen
>= 4 && byteBuffer[0] == 0 && byteBuffer[1] == 0 &&
518
else if (
byteLen
== 2)
541
int len = (
byteLen
>= (_preamble.Length))? (_preamble.Length - bytePos) : (
byteLen
- bytePos);
581
if (
byteLen
> 0)
583
charLen += decoder.GetChars(byteBuffer, 0,
byteLen
, charBuffer, charLen);
596
Contract.Assert(
byteLen
>= 0, "Stream.Read returned a negative number! This is a bug in your stream class.");
598
if (
byteLen
== 0) // We're at EOF
605
_isBlocked = (
byteLen
< byteBuffer.Length);
615
if (_detectEncoding &&
byteLen
>= 2)
618
charLen += decoder.GetChars(byteBuffer, 0,
byteLen
, charBuffer, charLen);
666
if (
byteLen
> 0) {
668
charsRead = decoder.GetChars(byteBuffer, 0,
byteLen
, userBuffer, userOffset + charsRead);
672
charsRead = decoder.GetChars(byteBuffer, 0,
byteLen
, charBuffer, charsRead);
687
Contract.Assert(
byteLen
>= 0, "Stream.Read returned a negative number! This is a bug in your stream class.");
689
if (
byteLen
== 0) // EOF
696
_isBlocked = (
byteLen
< byteBuffer.Length);
707
if (_detectEncoding &&
byteLen
>= 2) {
715
charsRead += decoder.GetChars(byteBuffer, 0,
byteLen
, userBuffer, userOffset + charsRead);
719
charsRead = decoder.GetChars(byteBuffer, 0,
byteLen
, charBuffer, charsRead);
1139
get { return
byteLen
; }