1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
140_outgoingBuffer = new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
201_outgoingBuffer.EnsureAvailableSpace(requiredSpace); 204Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 205_outgoingBuffer.Commit(Http2ConnectionPreface.Length); 208FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 209_outgoingBuffer.Commit(FrameHeader.Size); 210BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 211_outgoingBuffer.Commit(2); 212BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 213_outgoingBuffer.Commit(4); 214BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 215_outgoingBuffer.Commit(2); 216BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 217_outgoingBuffer.Commit(4); 224FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 225_outgoingBuffer.Commit(FrameHeader.Size); 226BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 227_outgoingBuffer.Commit(4); 229Debug.Assert(requiredSpace == _outgoingBuffer.ActiveLength); 239await _stream.WriteAsync(_outgoingBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 241_outgoingBuffer.ClearAndReturnBuffer(); 248_outgoingBuffer.Dispose(); 388if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 390if (_outgoingBuffer.ActiveLength > 0) 394await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 402_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1230int totalBufferLength = _outgoingBuffer.Capacity; 1233int activeBufferLength = _outgoingBuffer.ActiveLength; 1243_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1250bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1254_outgoingBuffer.Commit(writeBytes); 1272if (_outgoingBuffer.ActiveLength == 0) 1274_outgoingBuffer.ClearAndReturnBuffer(); 1286_outgoingBuffer.Dispose();