5 writes to m_ReadBuffer
System (5)
net\System\Net\_Connection.cs (5)
486
m_ReadBuffer
= s_PinnableBufferCache.AllocateBuffer();
491
m_ReadBuffer
= new byte[CachedBufferSize];
533
m_ReadBuffer
= null;
1349
m_ReadBuffer
= buffer;
3548
m_ReadBuffer
= newReadBuffer;
27 references to m_ReadBuffer
System (27)
net\System\Net\_Connection.cs (27)
519
PinnableBufferCacheEventSource.Log.DebugMessage1("DTOR: ERROR Needing to Free m_ReadBuffer in Connection Destructor",
m_ReadBuffer
.GetHashCode());
530
s_PinnableBufferCache.FreeBuffer(
m_ReadBuffer
);
1345
if (
m_ReadBuffer
!= buffer)
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);
2585
m_ReadBuffer
, // buffer we're working with
2600
m_ReadBuffer
, // buffer we're working with
2644
m_ReadBuffer
,
2654
m_ReadBuffer
,
3346
bytesRead = Read(
m_ReadBuffer
, m_BytesRead,
m_ReadBuffer
.Length - m_BytesRead);
3467
GlobalLog.Dump(
m_ReadBuffer
, m_BytesScanned, m_BytesRead - m_BytesScanned);
3468
GlobalLog.Dump(
m_ReadBuffer
, m_BytesRead, bytesRead);
3472
if (bytesRead >
m_ReadBuffer
.Length)
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());
3537
if (m_BytesScanned == 0 && m_BytesRead ==
m_ReadBuffer
.Length)
3543
byte[] newReadBuffer = new byte[
m_ReadBuffer
.Length * 2 /*+ ReadBufferSize*/];
3544
Buffer.BlockCopy(
m_ReadBuffer
, 0, newReadBuffer, 0, m_BytesRead);
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());
3694
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::PostReceive() m_ReadBuffer:" + ValidationHelper.HashString(
m_ReadBuffer
) + " Length:" +
m_ReadBuffer
.Length.ToString());
3704
m_LastAsyncResult = UnsafeBeginRead(
m_ReadBuffer
, m_BytesRead,
m_ReadBuffer
.Length - m_BytesRead, m_ReadCallback, this);