Struct H2Frame
- Namespace
- Fluxzy.Clients.H2
- Assembly
- Fluxzy.Core.dll
public readonly struct H2Frame
- Inherited Members
-
- Extension Methods
-
Constructors
public H2Frame(int length, H2FrameType bodyType, HeaderFlags flags, int streamIdentifier)
Parameters
length
int
bodyType
H2FrameType
flags
HeaderFlags
streamIdentifier
int
H2Frame(ReadOnlySpan<byte>)
public H2Frame(ReadOnlySpan<byte> headerFrames)
Parameters
headerFrames
ReadOnlySpan<byte>
Properties
BodyLength
public int BodyLength { get; }
Property Value
- int
BodyType
public H2FrameType BodyType { get; }
Property Value
- H2FrameType
Flags
public HeaderFlags Flags { get; }
Property Value
- HeaderFlags
StreamIdentifier
public int StreamIdentifier { get; }
Property Value
- int
Methods
public static H2Frame BuildHeaderFrameHeader(int length, int streamIdentifier, bool first, bool endStream, bool endHeader)
Parameters
length
int
streamIdentifier
int
first
bool
endStream
bool
endHeader
bool
Returns
- H2Frame
Write(Span<byte>)
public int Write(Span<byte> data)
Parameters
data
Span<byte>
Returns
- int
public static int Write(Span<byte> buffer, int length, H2FrameType bodyType, HeaderFlags flags, int streamIdentifier)
Parameters
buffer
Span<byte>
length
int
bodyType
H2FrameType
flags
HeaderFlags
streamIdentifier
int
Returns
- int