public int GetFrameSize(string name, int signature) { ExportDescriptor link = Exports.FirstOrDefault(e => e.Signature == signature && e.Name == name); if (link == null) { return(0); } return(link.FrameSize); }
public bool ValidateImports(ModuleImportDescriptor descriptor) { foreach (MethodImportDescriptor method in descriptor.Imports) { if (Exports.FirstOrDefault(lnk => lnk.Signature == method.Signature && lnk.Name == method.Name) == null) { return(false); } } return(true); }
private RemoteFunction FindFunction(string functionName) { var function = Exports.FirstOrDefault(f => f.Name == functionName || f.UndecoratedName == functionName); return(function); }
public ExportTableEntry GetExportByName(String name) { return(Exports.FirstOrDefault(x => String.Equals(x.ObjectName, name, StringComparison.OrdinalIgnoreCase))); }