System\Net\Http\SocketsHttpHandler\Http2Connection.cs (27)
205FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0);
221FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0);
1279FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Settings, FrameFlags.Ack, streamId: 0);
1294FrameHeader.WriteTo(span, FrameHeader.PingLength, FrameType.Ping, state.isAck ? FrameFlags.Ack : FrameFlags.None, streamId: 0);
1306FrameHeader.WriteTo(span, FrameHeader.RstStreamLength, FrameType.RstStream, FrameFlags.None, s.streamId);
1657FrameFlags flags = (remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None);
1658flags |= (s.endStream ? FrameFlags.EndStream : FrameFlags.None);
1669flags = remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None;
1730FrameHeader.WriteTo(writeBuffer.Span, s.current.Length, FrameType.Data, FrameFlags.None, s.streamId);
1750FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Data, FrameFlags.EndStream, s.streamId);
1764FrameHeader.WriteTo(span, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, s.streamId);
1887public readonly FrameFlags Flags;
1900public FrameHeader(int payloadLength, FrameType type, FrameFlags flags, int streamId)
1910public bool PaddedFlag => (Flags & FrameFlags.Padded) != 0;
1911public bool AckFlag => (Flags & FrameFlags.Ack) != 0;
1912public bool EndHeadersFlag => (Flags & FrameFlags.EndHeaders) != 0;
1913public bool EndStreamFlag => (Flags & FrameFlags.EndStream) != 0;
1914public bool PriorityFlag => (Flags & FrameFlags.Priority) != 0;
1920FrameFlags flags = (FrameFlags)buffer[4]; // do first to avoid some bounds checks
1928public static void WriteTo(Span<byte> destination, int payloadLength, FrameType type, FrameFlags flags, int streamId)
1932Debug.Assert((flags & FrameFlags.ValidBits) == flags);