1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
139_outgoingBuffer = new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
200_outgoingBuffer.EnsureAvailableSpace(requiredSpace); 203Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 204_outgoingBuffer.Commit(Http2ConnectionPreface.Length); 207FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 208_outgoingBuffer.Commit(FrameHeader.Size); 209BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 210_outgoingBuffer.Commit(2); 211BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 212_outgoingBuffer.Commit(4); 213BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 214_outgoingBuffer.Commit(2); 215BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 216_outgoingBuffer.Commit(4); 223FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 224_outgoingBuffer.Commit(FrameHeader.Size); 225BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 226_outgoingBuffer.Commit(4); 228Debug.Assert(requiredSpace == _outgoingBuffer.ActiveLength); 238await _stream.WriteAsync(_outgoingBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 240_outgoingBuffer.ClearAndReturnBuffer(); 247_outgoingBuffer.Dispose(); 385if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 387if (_outgoingBuffer.ActiveLength > 0) 391await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 399_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1227int totalBufferLength = _outgoingBuffer.Capacity; 1230int activeBufferLength = _outgoingBuffer.ActiveLength; 1240_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1247bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1251_outgoingBuffer.Commit(writeBytes); 1269if (_outgoingBuffer.ActiveLength == 0) 1271_outgoingBuffer.ClearAndReturnBuffer(); 1283_outgoingBuffer.Dispose();