public UnExport(UnPackage package, UnName objectName, int exportOffset, int exportSize) { _package = package; _objectName = objectName; ExportOffset = exportOffset; ExportSize = exportSize; }
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; }
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; } } } }
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; } } } }
public BytecodeReader(UnPackage package, BinaryReader reader) { _package = package; _reader = reader; }