Пример #1
0
        static string ToArchString(MachO.Architectures arch)
        {
            switch (arch)
            {
            case MachO.Architectures.ARM64:
                return("arm64");

            case MachO.Architectures.ARMv6:
                return("armv6");

            case MachO.Architectures.ARMv7:
                return("armv7");

            case MachO.Architectures.ARMv7s:
                return("armv7s");

            case MachO.Architectures.i386:
                return("i386");

            case MachO.Architectures.x86_64:
                return("x86_64");

            default:
                throw new ArgumentOutOfRangeException(nameof(arch));
            }
        }
Пример #2
0
 public static Func <MachOFile, bool> OfArchitecture(MachO.Architectures arch)
 {
     return(mf => mf.Architecture == arch);
 }