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