C# Class SWFProcessing.SWFModeller.ABC.DoABC

Represents a block of binary bytecode in a simple DoABC tag.
Mostra file Open project: WeeWorld/Swiffotron Class Usage Examples

Public Methods

Method Description
Disassemble ( ) : void

Disassembles all code. The loaded bytecode will be cached unless you tamper with the disassembled code in which case it will need re-assembly.

DoABC ( bool lazyInit, string name, byte bytecode, StringBuilder abcReadLog ) : System.Diagnostics

Initializes a new instance of a bytecode block.

GenerateDefaultScript ( string qClassName, Timeline timeline ) : DoABC

Generates a main timeline script for a new SWF

MarkCodeAsTampered ( ) : void

Disassembles all code and marks it as requiring re-assembly (i.e. the cached bytecode bytes are invalid and can't be written to file).

Private Methods

Method Description
GenerateTimelineClass ( AbcCode abc, string qClassName, SWFContext ctx ) : AS3ClassDef

Factory method for a new timeline class.

GenerateTimelineScript ( AbcCode abc, AS3ClassDef timelineClass ) : Method

Factory method for a new timeline script.

Merge ( DoABC abc, SWFContext ctx ) : void

Merges some code into this code.

MethodProc ( AbcCode mp ) : void

Process all the methods in this code block.

ToStringModelView ( int nest, StringBuilder sb ) : void

Method Details

Disassemble() public method

Disassembles all code. The loaded bytecode will be cached unless you tamper with the disassembled code in which case it will need re-assembly.
public Disassemble ( ) : void
return void

DoABC() public method

Initializes a new instance of a bytecode block.
public DoABC ( bool lazyInit, string name, byte bytecode, StringBuilder abcReadLog ) : System.Diagnostics
lazyInit bool Instruct the VM to use lazy initialization on /// this block.
name string The name of the block
bytecode byte The raw bytecode data.
abcReadLog System.Text.StringBuilder Ignored in release builds. Logs the parsing of the ABC /// file.
return System.Diagnostics

GenerateDefaultScript() public static method

Generates a main timeline script for a new SWF
public static GenerateDefaultScript ( string qClassName, Timeline timeline ) : DoABC
qClassName string Qualified class name for the MainTimeline class, /// e.g. mygeneratedswf_fla.MainTimeline
timeline SWFProcessing.SWFModeller.Modelling.Timeline
return DoABC

MarkCodeAsTampered() public method

Disassembles all code and marks it as requiring re-assembly (i.e. the cached bytecode bytes are invalid and can't be written to file).
public MarkCodeAsTampered ( ) : void
return void