C# Класс System.ServiceModel.Http2Protocol.FrameSerializer

Class that provides frames serialization and deserialization logic.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DeserializeControlFrame System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame
DeserializeDataFrame System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame
GetFrameType FrameType
ParseControlFrameHeader void
ParseControlFrameHeaders void
ParseDataFrameHeader void
ProcessorRun void
SerializeControlFrame byte[]
SerializeControlFrameHeaders byte[]
SerializeDataFrame byte[]
SetProcessors void

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

Метод Описание
Deserialize ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame

Deserializes the specified data into frame.

DeserializeCloseFrameExt ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.CloseFrameExt

Deserializes the Http2 Close Extension Data.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FrameSerializer ( ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the FrameSerializer class.

Serialize ( System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame frame ) : byte[]

Serializes the specified frame.

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

Метод Описание
DeserializeControlFrame ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame

Deserializes the data into control frame.

DeserializeDataFrame ( byte frameData ) : System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame

Deserialize Http2 data frame

GetFrameType ( byte data ) : FrameType
ParseControlFrameHeader ( ControlFrame &frame, byte data ) : void

Parses HTTP header of Http2 control frame.

ParseControlFrameHeaders ( ControlFrame &frame, byte data, int offset ) : void

Parses HTTP headers of Http2 control frame.

ParseDataFrameHeader ( System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame &frame, byte data ) : void

Parses HTTP header of Http2 data frame.

ProcessorRun ( byte &headersArray, DirectionProcessType type, int flags ) : void

Start process.

SerializeControlFrame ( ControlFrame frame ) : byte[]

Serializes the control frame.

SerializeControlFrameHeaders ( ProtocolHeaders frameHeaders ) : byte[]
SerializeDataFrame ( System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame frame ) : byte[]

Serializes the data frame.

SetProcessors ( List processors ) : void

Sets the message processors.

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

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

Deserializes the specified data into frame.
public Deserialize ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame
data byte The data.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame

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

Deserializes the Http2 Close Extension Data.
public DeserializeCloseFrameExt ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.CloseFrameExt
data byte The data.
Результат System.ServiceModel.Http2Protocol.ProtocolFrames.CloseFrameExt

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Initializes a new instance of the FrameSerializer class.
public FrameSerializer ( ProtocolOptions options ) : System.Collections.Generic
options ProtocolOptions The options.
Результат System.Collections.Generic

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

Serializes the specified frame.
public Serialize ( System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame frame ) : byte[]
frame System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame The frame.
Результат byte[]