7 writes to m_ReadBytes
System (7)
net\System\Net\_ConnectStream.cs (7)
258
m_ReadBytes
= readCount;
1573
m_ReadBytes
-= bytesTransferred;
1586
m_ReadBytes
= 0;
2073
m_ReadBytes
-= bytesTransferred;
2082
m_ReadBytes
= 0;
2845
m_ReadBytes
-= m_ReadBufferSize;
2857
m_ReadBytes
= 0;
30 references to m_ReadBytes
System (30)
net\System\Net\_ConnectStream.cs (30)
281
" ContentLength: " +
m_ReadBytes
+ " m_Chunked:" + m_Chunked.ToString());
579
else if (
m_ReadBytes
== 0) {
582
else if (
m_ReadBytes
== -1) {
1471
GlobalLog.Print("(start)m_ReadBytes = "+
m_ReadBytes
);
1509
if (
m_ReadBytes
!= -1) {
1510
bytesToRead = (int)Math.Min(
m_ReadBytes
, (long)size);
1551
if (
m_ReadBytes
!= -1) {
1572
if (
m_ReadBytes
!= -1) {
1575
GlobalLog.Assert(
m_ReadBytes
>= 0, "ConnectStream: Attempting to read more bytes than available.|m_ReadBytes < 0");
1577
GlobalLog.Print("m_ReadBytes = "+
m_ReadBytes
);
1579
if (
m_ReadBytes
< 0)
1584
if (
m_ReadBytes
== 0 || doneReading) {
1596
GlobalLog.Print("(end)m_ReadBytes = "+
m_ReadBytes
);
1746
if (
m_ReadBytes
!= -1) {
1747
bytesToRead = (int)Math.Min(
m_ReadBytes
, (long)size);
1784
GlobalLog.Assert(m_DoneCalled == 0 ||
m_ReadBytes
!= -1, "BeginRead: Calling BeginRead after ReadDone.|m_DoneCalled > 0 && m_ReadBytes == -1");
2054
if (
m_ReadBytes
!= -1 && (bytesTransferred < 0 || !zeroLengthRead))
2072
if (
m_ReadBytes
!= -1) {
2075
GlobalLog.Assert(
m_ReadBytes
>= 0, "ConnectStream: Attempting to read more bytes than available.|m_ReadBytes < 0");
2077
GlobalLog.Print("m_ReadBytes = "+
m_ReadBytes
);
2080
if (
m_ReadBytes
== 0 || doneReading) {
2828
long ReadBytes =
m_ReadBytes
;
2832
GlobalLog.Print("ConnectStream#" + ValidationHelper.HashString(this) + "::DrainSocket() m_ReadBytes:" +
m_ReadBytes
.ToString() + " m_ReadBufferSize:" + m_ReadBufferSize.ToString());
2841
GlobalLog.Print("ConnectStream#" + ValidationHelper.HashString(this) + "::DrainSocket() m_ReadBytes:" +
m_ReadBytes
.ToString() + " m_ReadOffset:" + m_ReadOffset.ToString());
2843
if (
m_ReadBytes
!= -1) {
2847
GlobalLog.Print("m_ReadBytes = "+
m_ReadBytes
);
2855
if (
m_ReadBytes
< 0) {
2856
GlobalLog.Print("ConnectStream#" + ValidationHelper.HashString(this) + "::DrainSocket() m_ReadBytes:" +
m_ReadBytes
.ToString() + " incorrect Content-Length? setting m_ReadBytes to 0 and returning false.");
2897
if ((drainTimeoutMilliseconds == 0) || (
m_ReadBytes
> c_MaxDrainBytes)) {
2898
GlobalLog.Print("ConnectStream#" + ValidationHelper.HashString(this) + "::DrainSocket() m_ReadBytes:" +
m_ReadBytes
.ToString() + " Closing the Connection");