1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
143_outgoingBuffer = new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
208_outgoingBuffer.EnsureAvailableSpace(requiredSpace); 211Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 212_outgoingBuffer.Commit(Http2ConnectionPreface.Length); 215FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 216_outgoingBuffer.Commit(FrameHeader.Size); 217BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 218_outgoingBuffer.Commit(2); 219BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 220_outgoingBuffer.Commit(4); 221BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 222_outgoingBuffer.Commit(2); 223BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 224_outgoingBuffer.Commit(4); 231FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 232_outgoingBuffer.Commit(FrameHeader.Size); 233BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 234_outgoingBuffer.Commit(4); 236Debug.Assert(requiredSpace == _outgoingBuffer.ActiveLength); 246await _stream.WriteAsync(_outgoingBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 248_outgoingBuffer.ClearAndReturnBuffer(); 255_outgoingBuffer.Dispose(); 398if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 400if (_outgoingBuffer.ActiveLength > 0) 404await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 412_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1248int totalBufferLength = _outgoingBuffer.Capacity; 1251int activeBufferLength = _outgoingBuffer.ActiveLength; 1261_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1268bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1272_outgoingBuffer.Commit(writeBytes); 1290if (_outgoingBuffer.ActiveLength == 0) 1292_outgoingBuffer.ClearAndReturnBuffer(); 1304_outgoingBuffer.Dispose();