C# Class QuicDotNet.Frames.StreamFrame

Inheritance: AbstractFrameBase
Datei anzeigen Open project: seanmcelroy/QuicDotNet Class Usage Examples

Private Properties

Property Type Description
StreamFrame System

Public Methods

Method 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

Method Description
StreamFrame ( ) : System

Method Details

FromByteArray() public static method

public static FromByteArray ( byte bytes, int index ) : int>.Tuple
bytes byte
index int
return int>.Tuple

GetMetadataLength() public method

public GetMetadataLength ( ) : int
return int

SetData() public method

public SetData ( [ data, bool fin ) : void
data [
fin bool
return void

StreamFrame() public method

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.
return System

StreamFrame() public method

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.
return System

ToByteArray() public method

public ToByteArray ( ) : byte[]
return byte[]