C# Класс QuicDotNet.Frames.StreamFrame

Наследование: AbstractFrameBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
StreamFrame System

Открытые методы

Метод Описание
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[]

Приватные методы

Метод Описание
StreamFrame ( ) : System

Описание методов

FromByteArray() публичный статический Метод

public static FromByteArray ( byte bytes, int index ) : int>.Tuple
bytes byte
index int
Результат int>.Tuple

GetMetadataLength() публичный Метод

public GetMetadataLength ( ) : int
Результат int

SetData() публичный Метод

public SetData ( [ data, bool fin ) : void
data [
fin bool
Результат void

StreamFrame() публичный Метод

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.
Результат System

StreamFrame() публичный Метод

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.
Результат System

ToByteArray() публичный Метод

public ToByteArray ( ) : byte[]
Результат byte[]