C# Class DotAmf.Encoder.AbstractAmfEncoder

Abstract AMF encoder.
Inheritance: IAmfEncoder
Mostra file Open project: artema/DotAmf

Public Methods

Method Description
Encode ( Stream stream, XmlReader input ) : void
WritePacketBody ( Stream stream, AmfMessageDescriptor descriptor ) : void
WritePacketHeader ( Stream stream, AmfHeaderDescriptor descriptor ) : void

Protected Methods

Method Description
AbstractAmfEncoder ( AmfEncodingOptions encodingOptions ) : System

Constructor.

CreateDefaultContext ( ) : AmfContext

Create default AMF decoding context.

WriteAmfValue ( AmfContext context, XmlReader input, AmfStreamWriter writer ) : void

Write AMF value from the current position.

Method Details

AbstractAmfEncoder() protected method

Constructor.
protected AbstractAmfEncoder ( AmfEncodingOptions encodingOptions ) : System
encodingOptions DotAmf.Data.AmfEncodingOptions AMF encoding options.
return System

CreateDefaultContext() protected method

Create default AMF decoding context.
protected CreateDefaultContext ( ) : AmfContext
return DotAmf.Data.AmfContext

Encode() public abstract method

public abstract Encode ( Stream stream, XmlReader input ) : void
stream Stream
input XmlReader
return void

WriteAmfValue() protected abstract method

Write AMF value from the current position.
AMF type is not supported. Invalid data format. Error during serialization.
protected abstract WriteAmfValue ( AmfContext context, XmlReader input, AmfStreamWriter writer ) : void
context DotAmf.Data.AmfContext AMF decoding context.
input XmlReader AMFX input reader.
writer AmfStreamWriter AMF stream writer.
return void

WritePacketBody() public abstract method

public abstract WritePacketBody ( Stream stream, AmfMessageDescriptor descriptor ) : void
stream Stream
descriptor DotAmf.Data.AmfMessageDescriptor
return void

WritePacketHeader() public abstract method

public abstract WritePacketHeader ( Stream stream, AmfHeaderDescriptor descriptor ) : void
stream Stream
descriptor DotAmf.Data.AmfHeaderDescriptor
return void