4 writes to _dataChunks
Microsoft.AspNetCore.Server.HttpSys (4)
RequestProcessing\ResponseStreamAsyncResult.cs (4)
47_dataChunks = null; 53_dataChunks = new HTTP_DATA_CHUNK[1 + (chunked ? 2 : 0)]; 107_dataChunks = null; 113_dataChunks = new HTTP_DATA_CHUNK[chunked ? 3 : 1];
29 references to _dataChunks
Microsoft.AspNetCore.Server.HttpSys (29)
RequestProcessing\ResponseStreamAsyncResult.cs (29)
54objectsToPin = new object[_dataChunks.Length + 1]; 55objectsToPin[0] = _dataChunks; 63SetDataChunk(_dataChunks, ref currentChunk, objectsToPin, ref currentPin, chunkHeaderBuffer); 66SetDataChunk(_dataChunks, ref currentChunk, objectsToPin, ref currentPin, data); 70SetDataChunkWithPinnedData(_dataChunks, ref currentChunk, Helpers.CRLF); 80_dataChunks[currentChunk].Anonymous.FromMemory.pBuffer = (void*)Marshal.UnsafeAddrOfPinnedArrayElement(chunkHeaderBuffer.Array!, chunkHeaderBuffer.Offset); 84_dataChunks[currentChunk].Anonymous.FromMemory.pBuffer = (void*)Marshal.UnsafeAddrOfPinnedArrayElement(data.Array!, data.Offset); 94Debug.Assert(currentChunk == _dataChunks.Length); 115object[] objectsToPin = new object[_dataChunks.Length]; 116objectsToPin[_dataChunks.Length - 1] = _dataChunks; 122_dataChunks[0].DataChunkType = HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 123_dataChunks[0].Anonymous.FromMemory.BufferLength = (uint)chunkHeaderBuffer.Count; 126_dataChunks[1].DataChunkType = HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromFileHandle; 127_dataChunks[1].Anonymous.FromFileHandle.ByteRange.StartingOffset = (ulong)offset; 128_dataChunks[1].Anonymous.FromFileHandle.ByteRange.Length = (ulong)count; 129_dataChunks[1].Anonymous.FromFileHandle.FileHandle = (HANDLE)_fileStream.SafeFileHandle.DangerousGetHandle(); 134SetDataChunkWithPinnedData(_dataChunks, ref currentChunk, Helpers.CRLF); 135Debug.Assert(currentChunk == _dataChunks.Length); 139_dataChunks[0].DataChunkType = HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromFileHandle; 140_dataChunks[0].Anonymous.FromFileHandle.ByteRange.StartingOffset = (ulong)offset; 141_dataChunks[0].Anonymous.FromFileHandle.ByteRange.Length = (ulong)count; 142_dataChunks[0].Anonymous.FromFileHandle.FileHandle = (HANDLE)_fileStream.SafeFileHandle.DangerousGetHandle(); 152_dataChunks[0].Anonymous.FromMemory.pBuffer = (void*)Marshal.UnsafeAddrOfPinnedArrayElement(chunkHeaderBuffer.Array!, chunkHeaderBuffer.Offset); 198if (_dataChunks == null) 204return (ushort)_dataChunks.Length; 213if (_dataChunks == null) 219return (HTTP_DATA_CHUNK*)(Marshal.UnsafeAddrOfPinnedArrayElement(_dataChunks, 0)); 257if (asyncResult._dataChunks == null)