Esempio n. 1
0
 public UnExport(UnPackage package, UnName objectName, int exportOffset, int exportSize)
 {
     _package     = package;
     _objectName  = objectName;
     ExportOffset = exportOffset;
     ExportSize   = exportSize;
 }
Esempio n. 2
0
 public UnExport(UnPackage package, UnName objectName, int exportOffset, int exportSize)
 {
     _package = package;
     _objectName = objectName;
     ExportOffset = exportOffset;
     ExportSize = exportSize;
 }
Esempio n. 3
0
 public UnImport(UnPackage package, UnName packageName, UnName className, int outer, UnName objectName, int flags)
 {
     _package     = package;
     _packageName = packageName;
     _className   = className;
     _outer       = outer;
     _objectName  = objectName;
     _flags       = flags;
 }
Esempio n. 4
0
 private void LoadNativeFunctions(UnPackage package)
 {
     for (int i = 0; i < package.Exports.Count; i++)
     {
         var export = package.Exports[i];
         if (export.ClassName == "Function")
         {
             var function = (UnFunction)export.ReadInstance();
             if (function.Native && !function.Event && function.NativeIndex != 0)
             {
                 _nativeFunctions[function.NativeIndex] = function;
             }
         }
     }
 }
Esempio n. 5
0
 private void LoadNativeFunctions(UnPackage package)
 {
     for (int i = 0; i < package.Exports.Count; i++)
     {
         var export = package.Exports[i];
         if (export.ClassName == "Function")
         {
             var function = (UnFunction) export.ReadInstance();
             if (function.Native && !function.Event && function.NativeIndex != 0)
             {
                 _nativeFunctions[function.NativeIndex] = function;
             }
         }
     }
 }
Esempio n. 6
0
 public BytecodeReader(UnPackage package, BinaryReader reader)
 {
     _package = package;
     _reader  = reader;
 }
Esempio n. 7
0
 public BytecodeReader(UnPackage package, BinaryReader reader)
 {
     _package = package;
     _reader = reader;
 }