zoukankan      html  css  js  c++  java
  • mono_image_open_from_data_with_name原型

    mono4.5

    https://github.com/Unity-Technologies/mono

    查看mono源码:

    //PATH: /mono/metadata/image.c
    MonoImage *
    mono_image_open_from_data_with_name (char *data, guint32 data_len, gboolean need_copy, MonoImageOpenStatus *status, gboolean refonly, const char *name)
    {}
    

    cpp形式可以如下

    void*
    mono_image_open_from_data_with_name (char *data, unsigned int data_len, int need_copy, int *status, int refonly, const char *name)
    {}
    

      

    其中MonoImage定义

    //Path: /mono/metadata/metadata-internals.h
    struct _MonoImage {
    	/*
    	 * The number of assemblies which reference this MonoImage though their 'image'
    	 * field plus the number of images which reference this MonoImage through their 
    	 * 'modules' field, plus the number of threads holding temporary references to
    	 * this image between calls of mono_image_open () and mono_image_close ().
    	 */
    	int   ref_count;
    	void *raw_data_handle;
    	char *raw_data;
    	guint32 raw_data_len;
    	guint8 raw_buffer_used    : 1;
    	guint8 raw_data_allocated : 1;
    
    #ifdef USE_COREE
    	/* Module was loaded using LoadLibrary. */
    	guint8 is_module_handle : 1;
    
    	/* Module entry point is _CorDllMain. */
    	guint8 has_entry_point : 1;
    #endif
    
    	/* Whenever this is a dynamically emitted module */
    	guint8 dynamic : 1;
    
    	/* Whenever this is a reflection only image */
    	guint8 ref_only : 1;
    
           /*
           .....................
          */
    }
    

    数据类型说明:

    • gunichar is defined as typedef guint32 gunichar

    • guint32 is defined as typedef unsigned int guint32

    • gboolean is defined as typedef gint gboolean

    • gint is defined as typedef int gint

    gxxx是标准glib类型(C#使用)

    定义可以查询: http://web.mit.edu/barnowl/share/gtk-doc/html/glib/glib-Basic-Types.html 

      

  • 相关阅读:
    JS数组的相关方法
    JS字符串的相关方法
    重回我的园区
    STM32F405串口UART4波特率注意问题
    NXP MCU开始学习中
    锂电池测试
    FPGA与STM32并口通信
    NXP LPC4350绝对强悍,准备入手学习
    SDRAM+FPGA+MCU
    STM32+FPGA通信成功
  • 原文地址:https://www.cnblogs.com/eniac1946/p/7477323.html
Copyright © 2011-2022 走看看