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(); 386if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 388if (_outgoingBuffer.ActiveLength > 0) 392await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 400_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1228int totalBufferLength = _outgoingBuffer.Capacity; 1231int activeBufferLength = _outgoingBuffer.ActiveLength; 1241_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1248bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1252_outgoingBuffer.Commit(writeBytes); 1270if (_outgoingBuffer.ActiveLength == 0) 1272_outgoingBuffer.ClearAndReturnBuffer(); 1284_outgoingBuffer.Dispose();