SWFProcessing.SWFModeller.ABC.DoABC.Disassemble C# (CSharp) Method

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
        public void Disassemble()
        {
            this.Code.Disassemble();
        }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Merges some code into this code.
        /// </summary>
        /// <param name="abc">The code to merge into this object. Once merged, you should
        /// discard 'abc'.</param>
        internal void Merge(DoABC abc, SWFContext ctx)
        {
            /* Because we want everything to be object references... */

            AbcCode abcCode  = abc.Code; /* This is a kludge to force initial parsing of the abc data, if not done already */
            AbcCode thisCode = this.Code;

            abc.Disassemble(); /* This ensures that the code is disassembled into mergable form */
            this.Disassemble();

            foreach (AS3ClassDef clazz in abc.Code.Classes)
            {
                AS3ClassDef classCollision = thisCode.GetClassByQName(clazz.Name.QualifiedName);
                if (classCollision != null)
                {
                    throw new SWFModellerException(
                              SWFModellerError.CodeMerge,
                              "Class name collision on " + clazz.Name,
                              ctx.Sentinel("ClassNameCollision"));
                }

                thisCode.AddClass(clazz);
            }
        }
All Usage Examples Of SWFProcessing.SWFModeller.ABC.DoABC::Disassemble