1 write to _outgoingBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
140
_outgoingBuffer
= new ArrayBuffer(initialSize: 0, usePool: true);
35 references to _outgoingBuffer
System.Net.Http (35)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (35)
201
_outgoingBuffer
.EnsureAvailableSpace(requiredSpace);
204
Http2ConnectionPreface.CopyTo(
_outgoingBuffer
.AvailableSpan);
205
_outgoingBuffer
.Commit(Http2ConnectionPreface.Length);
208
FrameHeader.WriteTo(
_outgoingBuffer
.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0);
209
_outgoingBuffer
.Commit(FrameHeader.Size);
210
BinaryPrimitives.WriteUInt16BigEndian(
_outgoingBuffer
.AvailableSpan, (ushort)SettingId.EnablePush);
211
_outgoingBuffer
.Commit(2);
212
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, 0);
213
_outgoingBuffer
.Commit(4);
214
BinaryPrimitives.WriteUInt16BigEndian(
_outgoingBuffer
.AvailableSpan, (ushort)SettingId.InitialWindowSize);
215
_outgoingBuffer
.Commit(2);
216
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize);
217
_outgoingBuffer
.Commit(4);
224
FrameHeader.WriteTo(
_outgoingBuffer
.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0);
225
_outgoingBuffer
.Commit(FrameHeader.Size);
226
BinaryPrimitives.WriteUInt32BigEndian(
_outgoingBuffer
.AvailableSpan, windowUpdateAmount);
227
_outgoingBuffer
.Commit(4);
229
Debug.Assert(requiredSpace ==
_outgoingBuffer
.ActiveLength);
239
await _stream.WriteAsync(
_outgoingBuffer
.ActiveMemory, cancellationToken).ConfigureAwait(false);
241
_outgoingBuffer
.ClearAndReturnBuffer();
248
_outgoingBuffer
.Dispose();
386
if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(
_outgoingBuffer
.ActiveLength)}={
_outgoingBuffer
.ActiveLength}");
388
if (
_outgoingBuffer
.ActiveLength > 0)
392
await _stream.WriteAsync(
_outgoingBuffer
.ActiveMemory).ConfigureAwait(false);
400
_outgoingBuffer
.Discard(
_outgoingBuffer
.ActiveLength);
1228
int totalBufferLength =
_outgoingBuffer
.Capacity;
1231
int activeBufferLength =
_outgoingBuffer
.ActiveLength;
1241
_outgoingBuffer
.EnsureAvailableSpace(writeBytes);
1248
bool flush = writeEntry.InvokeWriteAction(
_outgoingBuffer
.AvailableMemorySliced(writeBytes));
1252
_outgoingBuffer
.Commit(writeBytes);
1270
if (
_outgoingBuffer
.ActiveLength == 0)
1272
_outgoingBuffer
.ClearAndReturnBuffer();
1284
_outgoingBuffer
.Dispose();