1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
139
_outgoingBuffer
= new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
200
_outgoingBuffer
.EnsureAvailableSpace(requiredSpace);
203
Http2ConnectionPreface.CopyTo(
_outgoingBuffer
.AvailableSpan);
204
_outgoingBuffer
.Commit(Http2ConnectionPreface.Length);
207
FrameHeader.WriteTo(
_outgoingBuffer
.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0);
208
_outgoingBuffer
.Commit(FrameHeader.Size);
209
BinaryPrimitives.WriteUInt16BigEndian(
_outgoingBuffer
.AvailableSpan, (ushort)SettingId.EnablePush);
210
_outgoingBuffer
.Commit(2);
211
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, 0);
212
_outgoingBuffer
.Commit(4);
213
BinaryPrimitives.WriteUInt16BigEndian(
_outgoingBuffer
.AvailableSpan, (ushort)SettingId.InitialWindowSize);
214
_outgoingBuffer
.Commit(2);
215
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize);
216
_outgoingBuffer
.Commit(4);
223
FrameHeader.WriteTo(
_outgoingBuffer
.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0);
224
_outgoingBuffer
.Commit(FrameHeader.Size);
225
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, windowUpdateAmount);
226
_outgoingBuffer
.Commit(4);
228
Debug.Assert(requiredSpace ==
_outgoingBuffer
.ActiveLength);
238
await _stream.WriteAsync(
_outgoingBuffer
.ActiveMemory, cancellationToken).ConfigureAwait(false);
240
_outgoingBuffer
.ClearAndReturnBuffer();
247
_outgoingBuffer
.Dispose();
385
if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(
_outgoingBuffer
.ActiveLength)}={
_outgoingBuffer
.ActiveLength}");
387
if (
_outgoingBuffer
.ActiveLength > 0)
391
await _stream.WriteAsync(
_outgoingBuffer
.ActiveMemory).ConfigureAwait(false);
399
_outgoingBuffer
.Discard(
_outgoingBuffer
.ActiveLength);
1227
int totalBufferLength =
_outgoingBuffer
.Capacity;
1230
int activeBufferLength =
_outgoingBuffer
.ActiveLength;
1240
_outgoingBuffer
.EnsureAvailableSpace(writeBytes);
1247
bool flush = writeEntry.InvokeWriteAction(
_outgoingBuffer
.AvailableMemorySliced(writeBytes));
1251
_outgoingBuffer
.Commit(writeBytes);
1269
if (
_outgoingBuffer
.ActiveLength == 0)
1271
_outgoingBuffer
.ClearAndReturnBuffer();
1283
_outgoingBuffer
.Dispose();