4 writes to m_BytesRead
System (4)
net\System\Net\_Connection.cs (4)
1353
m_BytesRead
= bufferCount;
2467
m_BytesRead
= 0;
3474
m_BytesRead
= bytesRead;
3561
m_BytesRead
= unparsedDataSize;
26 references to m_BytesRead
System (26)
net\System\Net\_Connection.cs (26)
1525
if (m_BytesScanned <
m_BytesRead
)
1527
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadStartNextRequest() Calling ReadComplete, bytes unparsed = " + (
m_BytesRead
- m_BytesScanned));
1590
else if (m_BytesScanned <
m_BytesRead
)
1592
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::CheckStartReceive() Calling ReadComplete, bytes unparsed = " + (
m_BytesRead
- m_BytesScanned));
2392
int bufferLeft = (
m_BytesRead
- m_BytesScanned);
2586
m_BytesRead
, // total bytes read so far
2601
m_BytesRead
, // total bytes read so far
2634
if (m_BytesScanned >=
m_BytesRead
) {
2645
m_BytesRead
,
2655
m_BytesRead
,
2675
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ParseResponseData() DataParseStatus.Done StatusCode:" + (int)m_ResponseData.m_StatusCode + " m_BytesRead:" +
m_BytesRead
+ " m_BytesScanned:" + m_BytesScanned);
2774
if (m_BytesScanned ==
m_BytesRead
)
3318
if (m_BytesScanned <
m_BytesRead
)
3346
bytesRead = Read(m_ReadBuffer,
m_BytesRead
, m_ReadBuffer.Length -
m_BytesRead
);
3433
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() m_BytesRead:" +
m_BytesRead
.ToString() + " m_BytesScanned:" + m_BytesScanned + " (+= new bytesRead:" + bytesRead.ToString() + ")");
3467
GlobalLog.Dump(m_ReadBuffer, m_BytesScanned,
m_BytesRead
- m_BytesScanned);
3468
GlobalLog.Dump(m_ReadBuffer,
m_BytesRead
, bytesRead);
3471
bytesRead +=
m_BytesRead
;
3533
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() OLD buffer. m_ReadBuffer.Length:" + m_ReadBuffer.Length.ToString() + " m_BytesRead:" +
m_BytesRead
.ToString() + " m_BytesScanned:" + m_BytesScanned.ToString());
3534
int unparsedDataSize =
m_BytesRead
- m_BytesScanned;
3537
if (m_BytesScanned == 0 &&
m_BytesRead
== m_ReadBuffer.Length)
3544
Buffer.BlockCopy(m_ReadBuffer, 0, newReadBuffer, 0,
m_BytesRead
);
3563
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() NEW or shifted buffer. m_ReadBuffer.Length:" + m_ReadBuffer.Length.ToString() + " m_BytesRead:" +
m_BytesRead
.ToString() + " m_BytesScanned:" + m_BytesScanned.ToString());
3704
m_LastAsyncResult = UnsafeBeginRead(m_ReadBuffer,
m_BytesRead
, m_ReadBuffer.Length -
m_BytesRead
, m_ReadCallback, this);