1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
139_outgoingBuffer = new ArrayBuffer(initialSize: 0, usePool: true);
34 references to _outgoingBuffer
System.Net.Http (34)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (34)
196_outgoingBuffer.EnsureAvailableSpace(Http2ConnectionPreface.Length + 201Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 202_outgoingBuffer.Commit(Http2ConnectionPreface.Length); 205FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 206_outgoingBuffer.Commit(FrameHeader.Size); 207BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 208_outgoingBuffer.Commit(2); 209BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 210_outgoingBuffer.Commit(4); 211BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 212_outgoingBuffer.Commit(2); 213BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 214_outgoingBuffer.Commit(4); 221FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 222_outgoingBuffer.Commit(FrameHeader.Size); 223BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 224_outgoingBuffer.Commit(4); 229await _stream.WriteAsync(_outgoingBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 231_outgoingBuffer.ClearAndReturnBuffer(); 238_outgoingBuffer.Dispose(); 372if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 374if (_outgoingBuffer.ActiveLength > 0) 378await _stream.WriteAsync(_outgoingBuffer.ActiveMemory).ConfigureAwait(false); 386_outgoingBuffer.Discard(_outgoingBuffer.ActiveLength); 1214int totalBufferLength = _outgoingBuffer.Capacity; 1217int activeBufferLength = _outgoingBuffer.ActiveLength; 1227_outgoingBuffer.EnsureAvailableSpace(writeBytes); 1234bool flush = writeEntry.InvokeWriteAction(_outgoingBuffer.AvailableMemorySliced(writeBytes)); 1238_outgoingBuffer.Commit(writeBytes); 1256if (_outgoingBuffer.ActiveLength == 0) 1258_outgoingBuffer.ClearAndReturnBuffer(); 1270_outgoingBuffer.Dispose();