C# Class DotAmf.Decoder.AbstractAmfDecoder

Abstract AMF decoder.
Inheritance: IAmfDecoder
Mostra file Open project: artema/DotAmf

Public Methods

Method Description
Decode ( Stream stream, XmlWriter output ) : void
ReadPacketBody ( Stream stream ) : AmfMessageDescriptor
ReadPacketHeader ( Stream stream ) : AmfHeaderDescriptor

Protected Methods

Method Description
AbstractAmfDecoder ( AmfEncodingOptions decodingOptions ) : System

Constructor.

CreateDefaultContext ( ) : AmfContext

Create default AMF decoding context.

ReadAmfValue ( AmfContext context, AmfStreamReader reader, XmlWriter output = null ) : void

Read AMF value from the current position.

Method Details

AbstractAmfDecoder() protected method

Constructor.
protected AbstractAmfDecoder ( AmfEncodingOptions decodingOptions ) : System
decodingOptions DotAmf.Data.AmfEncodingOptions AMF decoding options.
return System

CreateDefaultContext() protected method

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

Decode() public abstract method

public abstract Decode ( Stream stream, XmlWriter output ) : void
stream Stream
output System.Xml.XmlWriter
return void

ReadAmfValue() protected abstract method

Read AMF value from the current position.
AMF type is not supported. Invalid data format. Error during deserialization.
protected abstract ReadAmfValue ( AmfContext context, AmfStreamReader reader, XmlWriter output = null ) : void
context DotAmf.Data.AmfContext AMF context.
reader DotAmf.IO.AmfStreamReader AMF stream reader.
output System.Xml.XmlWriter AMFX output writer.
return void

ReadPacketBody() public abstract method

public abstract ReadPacketBody ( Stream stream ) : AmfMessageDescriptor
stream Stream
return DotAmf.Data.AmfMessageDescriptor

ReadPacketHeader() public abstract method

public abstract ReadPacketHeader ( Stream stream ) : AmfHeaderDescriptor
stream Stream
return DotAmf.Data.AmfHeaderDescriptor