示例#1
0
        public static int ArchGetCompatScore(GLib.SList compat_arch_list, RC.Arch arch)
        {
            int raw_ret = rc_arch_get_compat_score(compat_arch_list.Handle, (int)arch);
            int ret     = raw_ret;

            return(ret);
        }
示例#2
0
        public static GLib.SList ArchGetCompatList(RC.Arch arch)
        {
            IntPtr raw_ret = rc_arch_get_compat_list((int)arch);

            GLib.SList ret = new GLib.SList(raw_ret);
            return(ret);
        }
示例#3
0
        public static RC.Arch ArchGetSystemArch()
        {
            int raw_ret = rc_arch_get_system_arch();

            RC.Arch ret = (RC.Arch)raw_ret;
            return(ret);
        }
示例#4
0
        public static string ArchToString(RC.Arch arch)
        {
            IntPtr raw_ret = rc_arch_to_string((int)arch);
            string ret     = GLib.Marshaller.Utf8PtrToString(raw_ret);

            return(ret);
        }
示例#5
0
        public static RC.Arch ArchFromString(string arch_name)
        {
            IntPtr arch_name_as_native = GLib.Marshaller.StringToPtrGStrdup(arch_name);
            int    raw_ret             = rc_arch_from_string(arch_name_as_native);

            RC.Arch ret = (RC.Arch)raw_ret;
            GLib.Marshaller.Free(arch_name_as_native);
            return(ret);
        }