C# Class QuicDotNet.Frames.StreamFrame

Inheritance: AbstractFrameBase
Afficher le fichier Open project: seanmcelroy/QuicDotNet Class Usage Examples

Private Properties

Свойство Type Description
StreamFrame System

Méthodes publiques

Méthode Description
FromByteArray ( byte bytes, int index ) : int>.Tuple
GetMetadataLength ( ) : int
SetData ( [ data, bool fin ) : void
StreamFrame ( [ data, bool fin, uint streamId, ulong offset ) : System

Creates a new stream frame with a block of data to send for the stream

StreamFrame ( uint streamId, ulong offset ) : System

Creates a PROTOTYPE stream frame with a block of data to send for the stream A prototype frame can only service the StreamFrame.GetMetadataLength method until it is hydrated with the StreamFrame.SetData(byte[], bool) method

ToByteArray ( ) : byte[]

Private Methods

Méthode Description
StreamFrame ( ) : System

Method Details

FromByteArray() public static méthode

public static FromByteArray ( byte bytes, int index ) : int>.Tuple
bytes byte
index int
Résultat int>.Tuple

GetMetadataLength() public méthode

public GetMetadataLength ( ) : int
Résultat int

SetData() public méthode

public SetData ( [ data, bool fin ) : void
data [
fin bool
Résultat void

StreamFrame() public méthode

Creates a new stream frame with a block of data to send for the stream
public StreamFrame ( [ data, bool fin, uint streamId, ulong offset ) : System
data [ The data block to send in this stream frame
fin bool A value indicating whether this is the final block of data for this stream, and that it should enter a half-closed state
streamId uint The StreamId for the frame
offset ulong A variable-sized unsigned number specifying the byte offset in the actual larger stream for this block of data.
Résultat System

StreamFrame() public méthode

Creates a PROTOTYPE stream frame with a block of data to send for the stream A prototype frame can only service the StreamFrame.GetMetadataLength method until it is hydrated with the StreamFrame.SetData(byte[], bool) method
public StreamFrame ( uint streamId, ulong offset ) : System
streamId uint The StreamId for the frame
offset ulong A variable-sized unsigned number specifying the byte offset in the actual larger stream for this block of data.
Résultat System

ToByteArray() public méthode

public ToByteArray ( ) : byte[]
Résultat byte[]