static ulong Offset(NListEntry entry) { NListEntry32 nl32 = entry as NListEntry32; return(nl32 != null ? nl32.n_value : ((NListEntry64)entry).n_value); }
public static bool AllPublicSwift(NListEntry entry) { return(entry.IsPublic && entry.EntryType == NListEntryType.InSection && entry.IsSwiftEntryPoint()); }
public FileEntryPair(MachOFile file, NListEntry entry) { File = file; Entry = entry; }
public static bool AllPublic(NListEntry entry) { return(entry.IsPublic && entry.EntryType == NListEntryType.InSection); }
public static bool IsSwiftEntryPoint(this NListEntry entry) { return(!String.IsNullOrEmpty(entry.str) && (entry.str.StartsWith("__T", StringComparison.Ordinal) || entry.str.StartsWith("_$s", StringComparison.Ordinal) || entry.str.StartsWith("_$S", StringComparison.Ordinal))); }