8 writes to m_BytesScanned
System (8)
net\System\Net\_Connection.cs (8)
1352
m_BytesScanned
= 0;
2442
m_BytesScanned
+= bytesToCopy;
2468
m_BytesScanned
= 0;
2587
ref
m_BytesScanned
, // index off of what we've scanned
2602
ref
m_BytesScanned
, // index off of what we've scanned
2646
ref
m_BytesScanned
,
2656
ref
m_BytesScanned
,
3562
m_BytesScanned
= 0;
22 references to m_BytesScanned
System (22)
net\System\Net\_Connection.cs (22)
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
);
2430
m_ResponseData.m_ConnectStream = new ConnectStream(this, m_ReadBuffer,
m_BytesScanned
, bufferLeft, bufferLeft, fHaveChunked, m_CurrentRequest);
2438
m_ResponseData.m_ConnectStream = new ConnectStream(this, m_ReadBuffer,
m_BytesScanned
, bytesToCopy, dummyResponseStream? 0: contentLength, fHaveChunked, m_CurrentRequest);
2446
m_ResponseData.m_ConnectStream = new ConnectStream(this, m_ReadBuffer,
m_BytesScanned
, bufferLeft, dummyResponseStream? 0: contentLength, fHaveChunked, m_CurrentRequest);
2634
if (
m_BytesScanned
>= 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)
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
);
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)
3555
Buffer.BlockCopy(m_ReadBuffer,
m_BytesScanned
, m_ReadBuffer, 0, unparsedDataSize);
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());
3572
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() Reposting Async Read. Buffer:" + ValidationHelper.HashString(m_ReadBuffer) + " BytesScanned:" +
m_BytesScanned
.ToString());
3698
GlobalLog.Assert(
m_BytesScanned
== 0, "PostReceive()|A receive should not be posted when m_BytesScanned != 0 (the data should be moved to offset 0).");