17 writes to byteLength
System.Data.Services.Client (17)
System\Data\Services\Client\BatchStream.cs (17)
249
this.
byteLength
-= count;
749
this.
byteLength
= 0;
862
this.
byteLength
-= count;
888
this.
byteLength
= this.reader.Read(this.byteBuffer, this.bytePosition, this.byteBuffer.Length);
919
this.
byteLength
-= preamble.Length;
977
this.
byteLength
-= i;
983
this.
byteLength
--;
992
this.
byteLength
--;
1031
this.
byteLength
-= 2;
1042
this.
byteLength
-= 4;
1051
this.
byteLength
-= 2;
1061
this.
byteLength
-= 3;
1072
this.
byteLength
-= 4;
1202
this.
byteLength
-= size;
1239
this.
byteLength
-= boundaryIndex;
1249
this.
byteLength
+= tmp;
1280
this.
byteLength
-= size;
29 references to byteLength
System.Data.Services.Client (29)
System\Data\Services\Client\BatchStream.cs (29)
246
int count = Math.Min(checked((int)offset), Math.Min(this.
byteLength
, this.batchLength));
258
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");
396
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");
503
if (this.
byteLength
!= 0)
865
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");
885
if (0 == this.
byteLength
)
891
this.writer.Write(this.byteBuffer, this.bytePosition, this.
byteLength
);
906
if (preamble.Length <= this.
byteLength
)
927
return (0 < this.
byteLength
);
951
Debug.Assert(0 < this.
byteLength
, "out of bytes");
952
Debug.Assert(this.bytePosition + this.
byteLength
<= this.byteBuffer.Length, "byte tracking out of range");
954
int end = i + Math.Min(this.
byteLength
, this.batchLength);
985
if (('\r' == ch) && ((0 < this.
byteLength
) || this.ReadBuffer()) && (0 < this.batchLength))
997
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");
1011
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");
1020
if (this.
byteLength
< 2)
1036
if (this.
byteLength
>= 4 &&
1055
else if (this.
byteLength
>= 3 &&
1064
else if (this.
byteLength
>= 4 &&
1117
int size = Math.Min(Math.Min(count, this.
byteLength
), this.batchLength) + this.bytePosition;
1185
if ((size + copied == boundaryIndex) && (boundaryIndex < this.
byteLength
))
1221
if (boundaryIndex == this.
byteLength
)
1225
Buffer.BlockCopy(data, this.bytePosition, data, 0, this.
byteLength
);
1229
int tmp = this.reader.Read(this.byteBuffer, this.
byteLength
, this.byteBuffer.Length - this.
byteLength
);
1232
this.writer.Write(this.byteBuffer, this.
byteLength
, tmp);
1274
if (0 < this.
byteLength
)
1276
int size = Math.Min(Math.Min(count, this.
byteLength
), this.batchLength);
1301
Debug.Assert(0 <= this.
byteLength
, "negative byteLength");