-typedef struct _MonoImage MonoImage;
-
-typedef struct {
- const char *name;
- const char *culture;
- const char *hash_value;
- guint32 hash_len;
- guint32 flags;
- guint16 major, minor, build, revision;
-} MonoAssemblyName;
-
-typedef struct {
- int ref_count;
- char *basedir;
- MonoAssemblyName aname;
- GModule *aot_module;
- MonoImage *image;
- /* Load files here */
- void *dynamic;
-} MonoAssembly;
-
-typedef struct {
- const char* data;
- guint32 size;
-} MonoStreamHeader;
-
-typedef struct {
- guint32 rows, row_size;
- const char *base;
-
- /*
- * Tables contain up to 9 columns and the possible sizes of the
- * fields in the documentation are 1, 2 and 4 bytes. So we
- * can encode in 2 bits the size.
- *
- * A 32 bit value can encode the resulting size
- *
- * The top eight bits encode the number of columns in the table.
- * we only need 4, but 8 is aligned no shift required.
- */
- guint32 size_bitfield;
-} MonoTableInfo;
-
-struct _MonoImage {
- int ref_count;
- FILE *f;
- /* if f is NULL the image was loaded rom raw data */
- char *raw_data;
- guint32 raw_data_len;
- gboolean raw_data_allocated;
- char *name;
- const char *assembly_name;
- const char *module_name;
- const char *version;
- char *guid;
- void *image_info;
-
- char *raw_metadata;
-
- gboolean idx_string_wide, idx_guid_wide, idx_blob_wide;
-
- MonoStreamHeader heap_strings;
- MonoStreamHeader heap_us;
- MonoStreamHeader heap_blob;
- MonoStreamHeader heap_guid;
- MonoStreamHeader heap_tables;
-
- const char *tables_base;
-
- MonoTableInfo tables [64];
-
- /*
- * references is initialized only by using the mono_assembly_open
- * function, and not by using the lowlevel mono_image_open.
- *
- * It is NULL terminated.
- */
- MonoAssembly **references;
-
- MonoImage **modules;