2 writes to m_DataChunks
System (2)
net\System\Net\_ListenerResponseStream.cs (2)
518
m_DataChunks
= null;
522
m_DataChunks
= new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK[chunked ? 3 : 1];
29 references to m_DataChunks
System (29)
net\System\Net\_ListenerResponseStream.cs (29)
488
if (
m_DataChunks
== null) {
492
return (ushort)
m_DataChunks
.Length;
499
if (
m_DataChunks
== null) {
503
return (UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK*)(Marshal.UnsafeAddrOfPinnedArrayElement(
m_DataChunks
, 0));
526
object[] objectsToPin = new object[1 +
m_DataChunks
.Length];
527
objectsToPin[
m_DataChunks
.Length] =
m_DataChunks
;
535
m_DataChunks
[0] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK();
536
m_DataChunks
[0].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory;
537
m_DataChunks
[0].BufferLength = (uint)(chunkHeaderBuffer.Length - chunkHeaderOffset);
541
m_DataChunks
[1] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK();
542
m_DataChunks
[1].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory;
543
m_DataChunks
[1].BufferLength = (uint)size;
547
m_DataChunks
[2] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK();
548
m_DataChunks
[2].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory;
549
m_DataChunks
[2].BufferLength = (uint)NclConstants.CRLF.Length;
555
m_DataChunks
[0] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK();
556
m_DataChunks
[0].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory;
557
m_DataChunks
[0].BufferLength = (uint)size;
567
m_DataChunks
[0].pBuffer = (byte*)(Marshal.UnsafeAddrOfPinnedArrayElement(chunkHeaderBuffer, chunkHeaderOffset));
568
m_DataChunks
[1].pBuffer = (byte*)(Marshal.UnsafeAddrOfPinnedArrayElement(buffer, offset));
569
m_DataChunks
[2].pBuffer = (byte*)(Marshal.UnsafeAddrOfPinnedArrayElement(NclConstants.CRLF, 0));
573
m_DataChunks
[0].pBuffer = (byte*)(Marshal.UnsafeAddrOfPinnedArrayElement(buffer, offset));
596
if (asyncResult.
m_DataChunks
== null) {
601
result = asyncResult.
m_DataChunks
.Length == 1 ? asyncResult.
m_DataChunks
[0].BufferLength : 0;
602
if (Logging.On) { for (int i = 0; i < asyncResult.
m_DataChunks
.Length; i++) { Logging.Dump(Logging.HttpListener, asyncResult, "Callback", (IntPtr)asyncResult.
m_DataChunks
[0].pBuffer, (int)asyncResult.
m_DataChunks
[0].BufferLength); } }