C# Class SwfDotNet.IO.ByteCode.Decompiler

Decompiler class. Compiles swf byte code to list of action objects.
Mostra file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
Decompile ( byte codeblock ) : ArrayList

decompile byte code to action objects

Decompiler ( int version ) : System

constructor.

Private Methods

Method Description
CreateBranchLabels ( ArrayList actionRecord ) : void

create ActionLabel pseudo actions for branch labels

CreatePseudoActions ( ArrayList actionRecord ) : void

create other pseudo actions

ExplodePushLists ( ArrayList actionRecord ) : void

convert push list to sequence of single push actions

ReadAction ( BinaryReader br ) : BaseAction

Read actions according to action code in swf

ReadActionConstantPool ( BinaryReader br ) : ActionConstantPool

Read constant pool action from swf. the constant pool is not parsed.

ReadActionDefineFunction ( BinaryReader br ) : ActionDefineFunction

Read ActionDefineFunction from swf. including inner actions

ReadActionDefineFunction2 ( BinaryReader br ) : ActionDefineFunction2

Read ActionDefineFunction2 from swf. including inner actions

ReadActionGetUrl ( BinaryReader br ) : ActionGetUrl

Read ActionGetUrl from swf.

ReadActionGetUrl2 ( BinaryReader br ) : ActionGetUrl2

Read ActionGetUrl2 from swf.

ReadActionGotoFrame ( BinaryReader br ) : ActionGotoFrame

Read ActionGotoFrame from swf.

ReadActionGotoFrame2 ( BinaryReader br ) : ActionGotoFrame2

Read ActionGotoFrame2 from swf.

ReadActionGotoLabel ( BinaryReader br ) : ActionGotoLabel

Read ActionGotoLabel from swf.

ReadActionIf ( BinaryReader br ) : ActionIf

Read if action from swf.

ReadActionJump ( BinaryReader br ) : ActionJump

Read jump action from swf.

ReadActionPush ( BinaryReader br ) : ActionPushList

Read multiply push action action as ActionPushList from swf.

ReadActionSetTarget ( BinaryReader br ) : ActionSetTarget

Read ActionSetTarget from swf.

ReadActionStoreRegister ( BinaryReader br ) : ActionStoreRegister

Read store register action from swf.

ReadActionTry ( BinaryReader br ) : ActionTry

Read try/catch block from swf and create corresponding ActionTry, ActionCatch, ActionFinally, ActionEndTryBlock actions.

ReadActionWaitForFrame ( BinaryReader br ) : ActionWaitForFrame

Read ActionWaitForFrame from swf.

ReadActionWaitForFrame2 ( BinaryReader br ) : ActionWaitForFrame2

Read ActionWaitForFrame2 from swf.

ReadActionWith ( BinaryReader br ) : ActionWith

Read ActionWith from swf.

ReadActions ( byte codeblock ) : ArrayList

Read bytecode actions from swf

ReadUnknownAction ( byte code, BinaryReader br ) : UnknownAction

Read unknown instruction as UnknownAction object

Method Details

Decompile() public method

decompile byte code to action objects
public Decompile ( byte codeblock ) : ArrayList
codeblock byte
return System.Collections.ArrayList

Decompiler() public method

constructor.
public Decompiler ( int version ) : System
version int swf Version
return System