System\Net\Http\SocketsHttpHandler\Http2Connection.cs (28)
86private const int InitialConnectionBufferSize = FrameHeader.Size;
197FrameHeader.Size + FrameHeader.SettingLength +
198FrameHeader.Size + FrameHeader.WindowUpdateLength);
206_outgoingBuffer.Commit(FrameHeader.Size);
222_outgoingBuffer.Commit(FrameHeader.Size);
404if (_incomingBuffer.ActiveLength < FrameHeader.Size)
411_incomingBuffer.EnsureAvailableSpace(FrameHeader.Size);
427ThrowPrematureEOF(FrameHeader.Size);
431while (_incomingBuffer.ActiveLength < FrameHeader.Size);
444_incomingBuffer.Discard(FrameHeader.Size);
447_incomingBuffer.Discard(FrameHeader.Size);
525if (_incomingBuffer.ActiveLength < FrameHeader.Size)
551while (_incomingBuffer.ActiveLength < FrameHeader.Size);
1284PerformWriteAsync(FrameHeader.Size, this, static (thisRef, writeBuffer) =>
1296PerformWriteAsync(FrameHeader.Size + FrameHeader.PingLength, (thisRef: this, pingContent, isAck), static (state, writeBuffer) =>
1304BinaryPrimitives.WriteInt64BigEndian(span.Slice(FrameHeader.Size), state.pingContent);
1310PerformWriteAsync(FrameHeader.Size + FrameHeader.RstStreamLength, (thisRef: this, streamId, errorCode), static (s, writeBuffer) =>
1316BinaryPrimitives.WriteInt32BigEndian(span.Slice(FrameHeader.Size), (int)s.errorCode);
1645int totalSize = headerBytes.Length + (frameCount * FrameHeader.Size);
1669span = span.Slice(FrameHeader.Size);
1681span = span.Slice(FrameHeader.Size);
1734await PerformWriteAsync(FrameHeader.Size + current.Length, (thisRef: this, streamId, current, flush), static (s, writeBuffer) =>
1740s.current.CopyTo(writeBuffer.Slice(FrameHeader.Size));
1755PerformWriteAsync(FrameHeader.Size, (thisRef: this, streamId), static (s, writeBuffer) =>
1768return PerformWriteAsync(FrameHeader.Size + FrameHeader.WindowUpdateLength, (thisRef: this, streamId, amount), static (s, writeBuffer) =>
1774BinaryPrimitives.WriteInt32BigEndian(span.Slice(FrameHeader.Size), s.amount);
1927Debug.Assert(buffer.Length >= Size);
1939Debug.Assert(destination.Length >= Size);