C# Class System.ServiceModel.Http2Protocol.FrameSerializer

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

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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

DeserializeCloseFrameExt() public method

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

Dispose() public method

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

FrameSerializer() public method

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

Serialize() public method

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