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);
1288FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Settings, FrameFlags.Ack, streamId: 0);
1303FrameHeader.WriteTo(span, FrameHeader.PingLength, FrameType.Ping, state.isAck ? FrameFlags.Ack : FrameFlags.None, streamId: 0);
1315FrameHeader.WriteTo(span, FrameHeader.RstStreamLength, FrameType.RstStream, FrameFlags.None, s.streamId);
1666FrameFlags flags = (remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None);
1667flags |= (s.endStream ? FrameFlags.EndStream : FrameFlags.None);
1678flags = remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None;
1739FrameHeader.WriteTo(writeBuffer.Span, s.current.Length, FrameType.Data, FrameFlags.None, s.streamId);
1759FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Data, FrameFlags.EndStream, s.streamId);
1773FrameHeader.WriteTo(span, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, s.streamId);
1896public readonly FrameFlags Flags;
1909public FrameHeader(int payloadLength, FrameType type, FrameFlags flags, int streamId)
1919public bool PaddedFlag => (Flags & FrameFlags.Padded) != 0;
1920public bool AckFlag => (Flags & FrameFlags.Ack) != 0;
1921public bool EndHeadersFlag => (Flags & FrameFlags.EndHeaders) != 0;
1922public bool EndStreamFlag => (Flags & FrameFlags.EndStream) != 0;
1923public bool PriorityFlag => (Flags & FrameFlags.Priority) != 0;
1929FrameFlags flags = (FrameFlags)buffer[4]; // do first to avoid some bounds checks
1937public static void WriteTo(Span<byte> destination, int payloadLength, FrameType type, FrameFlags flags, int streamId)
1941Debug.Assert((flags & FrameFlags.ValidBits) == flags);