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