1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
146_outgoingBuffer = new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
211_outgoingBuffer.EnsureAvailableSpace(requiredSpace); 214Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 215_outgoingBuffer.Commit(Http2ConnectionPreface.Length); 218FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 219_outgoingBuffer.Commit(FrameHeader.Size); 220BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 221_outgoingBuffer.Commit(2); 222BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 223_outgoingBuffer.Commit(4); 224BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 225_outgoingBuffer.Commit(2); 226BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 227_outgoingBuffer.Commit(4); 234FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 235_outgoingBuffer.Commit(FrameHeader.Size); 236BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 237_outgoingBuffer.Commit(4); 239Debug.Assert(requiredSpace == _outgoingBuffer.ActiveLength); 249await _stream.WriteAsync(_outgoingBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 251_outgoingBuffer.ClearAndReturnBuffer(); 258_outgoingBuffer.Dispose(); 401if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 403if (_outgoingBuffer.ActiveLength > 0) 407await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 415_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1244int totalBufferLength = _outgoingBuffer.Capacity; 1247int activeBufferLength = _outgoingBuffer.ActiveLength; 1257_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1264bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1268_outgoingBuffer.Commit(writeBytes); 1286if (_outgoingBuffer.ActiveLength == 0) 1288_outgoingBuffer.ClearAndReturnBuffer(); 1300_outgoingBuffer.Dispose();