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