• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# function_info类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中function_info的典型用法代码示例。如果您正苦于以下问题:C# function_info类的具体用法?C# function_info怎么用?C# function_info使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



function_info类属于命名空间,在下文中一共展示了function_info类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: NOPH_Canvas_get

    public static int NOPH_Canvas_get()
    {
        function_info fi = new function_info("NOPH_Canvas_get");
        fis.Add(fi.setFinishTime());

        return Syscalls.canvasHandle;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:7,代码来源:Syscalls-for-profiling.cs


示例2: NOPH_Font_getAdvance

    public static int NOPH_Font_getAdvance(int __font, int __text)
    {
        function_info fi = new function_info("NOPH_Font_getAdvance");

        int charwidth;

        switch (__font)
        {
            case 7:
            case 8:
                charwidth = 5;
                break;
            case 9:
            case 10:
                charwidth = 6;
                break;
            case 11:
                charwidth = 7;
                break;
            case 12:
            case 13:
                charwidth = 8;
                break;
            case 14:
                charwidth = 9;
                break;
            case 15:
            case 16:
                charwidth = 10;
                break;
            case 17:
                charwidth = 11;
                break;
            case 18:
            case 19:
                charwidth = 12;
                break;
            case 20:
                charwidth = 13;
                break;
            case 21:
            case 22:
                charwidth = 14;
                break;
            case 23:
            case 24:
                charwidth = 15;
                break;
            case 25:
                charwidth = 16;
                break;
            case 26:
            case 27:
                charwidth = 17;
                break;
            case 28:
                charwidth = 18;
                break;
            case 29:
            case 30:
                charwidth = 19;
                break;
            case 31:
            case 32:
                charwidth = 20;
                break;
            case 33:
                charwidth = 21;
                break;
            case 34:
                charwidth = 22;
                break;
            case 35:
                charwidth = 23;
                break;
            default:
                charwidth = 5;
                break;
        }

        String text = CRunTime.charPtrToString(__text);
        int ret = (int)((__font * 0.56) * text.Length);
                fis.Add(fi.setFinishTime());

        return ret;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:86,代码来源:Syscalls-for-profiling.cs


示例3: NOPH_Font_getDefault

    public static int NOPH_Font_getDefault()
    {
        function_info fi = new function_info("NOPH_Font_getDefault");

        object ret = new object();
        //todomt Font ret = (Font)new Font("FreeSans",8,FontStyle.Regular);// todomt. .getDefault();
        int registeredHandle = CRunTime.registerObject(ret);
                fis.Add(fi.setFinishTime());

        return registeredHandle;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:11,代码来源:Syscalls-for-profiling.cs


示例4: NOPH_FileConnection_openInputStream

    public static int NOPH_FileConnection_openInputStream(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_openInputStream");

        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        if (File.Exists(fc.filename))
        {
            FileStream ret = new FileStream(fc.filename, FileMode.Open, FileAccess.Read);
            fc.stream = ret;
            int registeredHandle = CRunTime.registerObject(ret);
                    fis.Add(fi.setFinishTime());

            return registeredHandle;
        }
        else
        {
                    fis.Add(fi.setFinishTime());

            return 0;
        }
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:21,代码来源:Syscalls-for-profiling.cs


示例5: NOPH_FileConnection_truncate

    public static void NOPH_FileConnection_truncate(int __fc, int byteOffest)
    {
        function_info fi = new function_info("NOPH_FileConnection_truncate");

        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        if (fc.filename.ToLower().StartsWith("userstore://"))
        {
            var store = IsolatedStorageFile.GetUserStoreForApplication();
            store.DeleteFile(fc.filename.Substring(12));
        }
        else
        {
                    fis.Add(fi.setFinishTime());

            return;
        }
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:18,代码来源:Syscalls-for-profiling.cs


示例6: NOPH_FileConnection_delete

    public static void NOPH_FileConnection_delete(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_delete");

        NOPH_FileConnection_truncate(__fc, 0);
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:7,代码来源:Syscalls-for-profiling.cs


示例7: NOPH_FileConnection_fileSize

    public static int NOPH_FileConnection_fileSize(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_fileSize");

        string name;
        FileType file_type;
        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        GetFileTypeAndName(fc.filename, out file_type, out name);

        if (file_type == FileType.USER_STORE)
        {
            var store = IsolatedStorageFile.GetUserStoreForApplication();
                    fis.Add(fi.setFinishTime());

            return store.FileExists(name) ? 1 : 0;
        }
        else
        {
                    fis.Add(fi.setFinishTime());

            return (int)GetFileStream(fc.filename, FileMode.Open).Length;
        }
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:23,代码来源:Syscalls-for-profiling.cs


示例8: NOPH_DeviceInfo_getBatteryLevel

    public static int NOPH_DeviceInfo_getBatteryLevel()
    {
        function_info fi = new function_info("NOPH_DeviceInfo_getBatteryLevel");
        fis.Add(fi.setFinishTime());

        return 100;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:7,代码来源:Syscalls-for-profiling.cs


示例9: NOPH_DeviceSpecific_getPlatform

    public static void NOPH_DeviceSpecific_getPlatform(int addr, int size)
    {
        function_info fi = new function_info("NOPH_DeviceSpecific_getPlatform");

        //todomt
        String p = "WindowsPhone";
        byte[] bytes = StringToAscii(p);
        size--;
        if (size > bytes.Length) size = bytes.Length;
        CRunTime.memcpy(addr, bytes, 0, size);
        CRunTime.memoryWriteByte(addr + size, 0);
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:13,代码来源:Syscalls-for-profiling.cs


示例10: NOPH_Connector_openFileConnection_mode

    public static int NOPH_Connector_openFileConnection_mode(int __name, int mode)
    {
        function_info fi = new function_info("NOPH_Connector_openFileConnection_mode");

        String name = CRunTime.charPtrToString(__name);
        FileConnection ret = new FileConnection(name, mode);
        int registeredHandle = CRunTime.registerObject(ret);
                fis.Add(fi.setFinishTime());

        return registeredHandle;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:11,代码来源:Syscalls-for-profiling.cs


示例11: NOPH_delete

    public static void NOPH_delete(int a0)
    {
        function_info fi = new function_info("NOPH_delete");

        // todomt2 - avoid begininvoke still not running and noph_delete already called
                if (CRunTime.objectRepository[a0] is BitmapImage)
                {
                    fis.Add(fi.setFinishTime());

                    return;
                }

        // todomt2 when i will handle the above this will keep memory stable
        if (CRunTime.objectRepository[a0] is BitmapImage)
            bitmaps_info.Remove(a0);

        CRunTime.deRegisterObject(a0);

                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:20,代码来源:Syscalls-for-profiling.cs


示例12: NOPH_Connector_openDataOutputStream

    public static int NOPH_Connector_openDataOutputStream(int __name)
    {
        function_info fi = new function_info("NOPH_Connector_openDataOutputStream");

        /*        String name = CRunTime.charPtrToString(__name);
                DataOutputStream ret = (DataOutputStream)Connector.openDataOutputStream(name);
                int registeredHandle = CRunTime.registerObject(ret);
                return registeredHandle;*/
                fis.Add(fi.setFinishTime());

        return 1;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:12,代码来源:Syscalls-for-profiling.cs


示例13: NOPH_ConfirmDialog_CreateDialog

    public static void NOPH_ConfirmDialog_CreateDialog(int __title, int __text, int defaultYes, int __textYes, int __textNo, int seconds, int yesCallback, int noCallback, int context)
    {
        function_info fi = new function_info("NOPH_ConfirmDialog_CreateDialog");

        String title = CRunTime.charPtrToString(__title);
        String text = CRunTime.charPtrToString(__text);
        String textYes = CRunTime.charPtrToString(__textYes);
        String textNo = CRunTime.charPtrToString(__textNo);

        mre.Reset();

        System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
            {

                MessageBoxResult res = MessageBox.Show(text, title, MessageBoxButton.OKCancel);
                if (res == MessageBoxResult.OK || res == MessageBoxResult.Yes)
                {
                    UIWorker.addUIEvent(yesCallback, context, 0, 0, 0, true);
                }
                else
                {
                    UIWorker.addUIEvent(noCallback, context, 0, 0, 0, true);
                }
                mre.Set();
            });
        mre.WaitOne();
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:28,代码来源:Syscalls-for-profiling.cs


示例14: NOPH_Class_getResourceAsStream

    public static int NOPH_Class_getResourceAsStream(int __obj, int __name)
    {
        function_info fi = new function_info("NOPH_Class_getResourceAsStream");

        Type obj = (Type)CRunTime.objectRepository[__obj];
        String name = CRunTime.charPtrToString(__name);

        Stream ret = GetFileStream(name, FileMode.Open);
        if (ret == null)
        {
            ret = GetFileStream("userstore://" + name, FileMode.Open);
            if (ret == null)
            {
                        fis.Add(fi.setFinishTime());

                return 0;
            }
        }

        int registeredHandle = CRunTime.registerObject(ret);
                fis.Add(fi.setFinishTime());

        return registeredHandle;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:24,代码来源:Syscalls-for-profiling.cs


示例15: NOPH_FileConnection_close

    public static void NOPH_FileConnection_close(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_close");

        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        fc.stream.Close();
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:8,代码来源:Syscalls-for-profiling.cs


示例16: NOPH_DeviceSpecific_init

    public static void NOPH_DeviceSpecific_init(int timeout, int isRefreshThread)
    {
        function_info fi = new function_info("NOPH_DeviceSpecific_init");

        fis.Add(fi.setFinishTime());
        /*todomt2
        DeviceSpecific.init(timeout, isRefreshThread);*/
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:8,代码来源:Syscalls-for-profiling.cs


示例17: NOPH_FileConnection_create

    public static void NOPH_FileConnection_create(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_create");

        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        Stream stream = GetFileStream(fc.filename, FileMode.OpenOrCreate);
        fc.stream = stream;
        stream.Close();
                fis.Add(fi.setFinishTime());
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:10,代码来源:Syscalls-for-profiling.cs


示例18: NOPH_DeviceSpecific_setBacklightOn

    public static void NOPH_DeviceSpecific_setBacklightOn()
    {
        function_info fi = new function_info("NOPH_DeviceSpecific_setBacklightOn");
        fis.Add(fi.setFinishTime());

        /*todomt2
        DeviceSpecific.setBacklightOn();
         */
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:9,代码来源:Syscalls-for-profiling.cs


示例19: NOPH_FileConnection_exists

    public static int NOPH_FileConnection_exists(int __fc)
    {
        function_info fi = new function_info("NOPH_FileConnection_exists");

        FileConnection fc = (FileConnection)CRunTime.objectRepository[__fc];
        Stream stream = GetFileStream(fc.filename, FileMode.Open);
        int exist = (stream != null) ? 1 : 0;
        if (stream != null)
        {
            stream.Close();
        }
                fis.Add(fi.setFinishTime());

        return exist;
    }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:15,代码来源:Syscalls-for-profiling.cs


示例20: NOPH_EditBoxScreenOS5_isTouchScreenSupported

 public static int NOPH_EditBoxScreenOS5_isTouchScreenSupported()
 {
     function_info fi = new function_info("NOPH_EditBoxScreenOS5_isTouchScreenSupported");
     fis.Add(fi.setFinishTime());
     return 1;
 }
开发者ID:noamkfir,项目名称:WazeWP7,代码行数:6,代码来源:Syscalls-for-profiling.cs



注:本文中的function_info类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# genType类代码示例发布时间:2022-05-24
下一篇:
C# fsData类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap