コード例 #1
0
        static ulong Offset(NListEntry entry)
        {
            NListEntry32 nl32 = entry as NListEntry32;

            return(nl32 != null ? nl32.n_value : ((NListEntry64)entry).n_value);
        }
コード例 #2
0
 public static bool AllPublicSwift(NListEntry entry)
 {
     return(entry.IsPublic && entry.EntryType == NListEntryType.InSection && entry.IsSwiftEntryPoint());
 }
コード例 #3
0
 public FileEntryPair(MachOFile file, NListEntry entry)
 {
     File  = file;
     Entry = entry;
 }
コード例 #4
0
 public static bool AllPublic(NListEntry entry)
 {
     return(entry.IsPublic && entry.EntryType == NListEntryType.InSection);
 }
コード例 #5
0
 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)));
 }