C# Class System.ServiceModel.Http2Protocol.FrameSerializer

Class that provides frames serialization and deserialization logic.
Inheritance: IDisposable
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Deserialize() public méthode

Deserializes the specified data into frame.
public Deserialize ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame
data byte The data.
Résultat System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame

DeserializeCloseFrameExt() public méthode

Deserializes the Http2 Close Extension Data.
public DeserializeCloseFrameExt ( byte data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.CloseFrameExt
data byte The data.
Résultat System.ServiceModel.Http2Protocol.ProtocolFrames.CloseFrameExt

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

FrameSerializer() public méthode

Initializes a new instance of the FrameSerializer class.
public FrameSerializer ( ProtocolOptions options ) : System.Collections.Generic
options ProtocolOptions The options.
Résultat System.Collections.Generic

Serialize() public méthode

Serializes the specified frame.
public Serialize ( System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame frame ) : byte[]
frame System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame The frame.
Résultat byte[]