#ifndef __MONO_METADATA_CLASS_INTERBALS_H__ #define __MONO_METADATA_CLASS_INTERBALS_H__ #include #include #include #include "mono/utils/mono-compiler.h" #define MONO_CLASS_IS_ARRAY(c) ((c)->rank) #define MONO_DEFAULT_SUPERTABLE_SIZE 6 extern gboolean mono_print_vtable; typedef void (*MonoStackWalkImpl) (MonoStackWalk func, gboolean do_il_offset, gpointer user_data); typedef struct _MonoMethodNormal MonoMethodNormal; typedef struct _MonoMethodWrapper MonoMethodWrapper; typedef struct _MonoMethodInflated MonoMethodInflated; typedef struct _MonoMethodPInvoke MonoMethodPInvoke; typedef enum { #define WRAPPER(e,n) MONO_WRAPPER_ ## e, #include "wrapper-types.h" #undef WRAPPER MONO_WRAPPER_NUM } MonoWrapperType; typedef enum { MONO_TYPE_NAME_FORMAT_IL, MONO_TYPE_NAME_FORMAT_REFLECTION, MONO_TYPE_NAME_FORMAT_FULL_NAME, MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED } MonoTypeNameFormat; typedef enum { MONO_REMOTING_TARGET_UNKNOWN, MONO_REMOTING_TARGET_APPDOMAIN, MONO_REMOTING_TARGET_COMINTEROP } MonoRemotingTarget; struct _MonoMethod { guint16 flags; /* method flags */ guint16 iflags; /* method implementation flags */ guint32 token; MonoClass *klass; MonoMethodSignature *signature; MonoGenericContainer *generic_container; /* name is useful mostly for debugging */ const char *name; /* this is used by the inlining algorithm */ unsigned int inline_info:1; unsigned int uses_this:1; unsigned int wrapper_type:5; unsigned int string_ctor:1; unsigned int save_lmf:1; unsigned int dynamic:1; /* created & destroyed during runtime */ unsigned int is_inflated:1; /* whether we're a MonoMethodInflated */ unsigned int skip_visibility:1; /* whenever to skip JIT visibility checks */ signed int slot : 20; }; struct _MonoMethodNormal { MonoMethod method; MonoMethodHeader *header; }; struct _MonoMethodWrapper { MonoMethodNormal method; void *method_data; }; struct _MonoMethodPInvoke { MonoMethod method; gpointer addr; /* add marshal info */ guint16 piflags; /* pinvoke flags */ guint16 implmap_idx; /* index into IMPLMAP */ }; typedef struct { MonoType *generic_type; gpointer reflection_info; } MonoInflatedField; /* * MonoClassField is just a runtime representation of the metadata for * field, it doesn't contain the data directly. Static fields are * stored in MonoVTable->data. Instance fields are allocated in the * objects after the object header. */ struct _MonoClassField { /* Type of the field */ MonoType *type; /* If this is an instantiated generic type, this is the * "original" type, ie. the MONO_TYPE_VAR or MONO_TYPE_GENERICINST * it was instantiated from. */ MonoInflatedField *generic_info; /* * Offset where this field is stored; if it is an instance * field, it's the offset from the start of the object, if * it's static, it's from the start of the memory chunk * allocated for statics for the class. */ int offset; const char *name; /* * If the field is constant, pointer to the metadata constant * value. * If the field has an RVA flag, pointer to the data. * Else, invalid. */ const char *data; /* Type where the field was defined */ MonoClass *parent; /* * If the field is constant, the type of the constant. */ MonoTypeEnum def_type; }; /* a field is ignored if it's named "_Deleted" and it has the specialname and rtspecialname flags set */ #define mono_field_is_deleted(field) (((field)->type->attrs & (FIELD_ATTRIBUTE_SPECIAL_NAME | FIELD_ATTRIBUTE_RT_SPECIAL_NAME)) \ && (strcmp ((field)->name, "_Deleted") == 0)) typedef struct { MonoClassField *field; guint32 offset; MonoMarshalSpec *mspec; } MonoMarshalField; typedef struct { guint32 native_size; guint32 num_fields; MonoMethod *ptr_to_str; MonoMethod *str_to_ptr; MonoMarshalField fields [MONO_ZERO_LEN_ARRAY]; } MonoMarshalType; struct _MonoProperty { MonoClass *parent; const char *name; MonoMethod *get; MonoMethod *set; guint32 attrs; }; struct _MonoEvent { MonoClass *parent; const char *name; MonoMethod *add; MonoMethod *remove; MonoMethod *raise; MonoMethod **other; guint32 attrs; }; /* type of exception being "on hold" for later processing (see exception_type) */ enum { MONO_EXCEPTION_NONE = 0, MONO_EXCEPTION_SECURITY_LINKDEMAND = 1, MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND = 2, MONO_EXCEPTION_INVALID_PROGRAM = 3, MONO_EXCEPTION_UNVERIFIABLE_IL = 4, MONO_EXCEPTION_MISSING_METHOD = 5, MONO_EXCEPTION_MISSING_FIELD = 6, MONO_EXCEPTION_TYPE_LOAD = 7, MONO_EXCEPTION_FILE_NOT_FOUND = 8, MONO_EXCEPTION_METHOD_ACCESS = 9, MONO_EXCEPTION_FIELD_ACCESS = 10, /* add other exception type */ }; /* This struct collects the info needed for the runtime use of a class, * like the vtables for a domain, the GC descriptor, etc. */ typedef struct { guint16 max_domain; /* domain_vtables is indexed by the domain id and the size is max_domain + 1 */ MonoVTable *domain_vtables [MONO_ZERO_LEN_ARRAY]; } MonoClassRuntimeInfo; struct _MonoClass { MonoImage *image; /* The underlying type of the enum */ MonoType *enum_basetype; /* element class for arrays and enum */ MonoClass *element_class; /* used for subtype checks */ MonoClass *cast_class; /* array dimension */ guint8 rank; guint inited : 1; /* We use init_pending to detect cyclic calls to mono_class_init */ guint init_pending : 1; /* A class contains static and non static data. Static data can be * of the same type as the class itselfs, but it does not influence * the instance size of the class. To avoid cyclic calls to * mono_class_init (from mono_class_instance_size ()) we first * initialise all non static fields. After that we set size_inited * to 1, because we know the instance size now. After that we * initialise all static fields. */ guint size_inited : 1; guint valuetype : 1; /* derives from System.ValueType */ guint enumtype : 1; /* derives from System.Enum */ guint blittable : 1; /* class is blittable */ guint unicode : 1; /* class uses unicode char when marshalled */ guint wastypebuilder : 1; /* class was created at runtime from a TypeBuilder */ /* next byte */ guint min_align : 4; guint packing_size : 4; /* next byte */ guint ghcimpl : 1; /* class has its own GetHashCode impl */ guint has_finalize : 1; /* class has its own Finalize impl */ guint marshalbyref : 1; /* class is a MarshalByRefObject */ guint contextbound : 1; /* class is a ContextBoundObject */ guint delegate : 1; /* class is a Delegate */ guint gc_descr_inited : 1; /* gc_descr is initialized */ guint has_cctor : 1; /* class has a cctor */ guint has_references : 1; /* it has GC-tracked references in the instance */ /* next byte */ guint has_static_refs : 1; /* it has static fields that are GC-tracked */ guint no_special_static_fields : 1; /* has no thread/context static fields */ /* directly or indirectly derives from ComImport attributed class. * this means we need to create a proxy for instances of this class * for COM Interop. set this flag on loading so all we need is a quick check * during object creation rather than having to traverse supertypes */ guint is_com_object : 1; guint8 exception_type; /* MONO_EXCEPTION_* */ void* exception_data; /* Additional information about the exception */ guint32 declsec_flags; /* declarative security attributes flags */ MonoClass *parent; MonoClass *nested_in; GList *nested_classes; guint32 type_token; const char *name; const char *name_space; /* for fast subtype checks */ MonoClass **supertypes; guint16 idepth; guint16 interface_count; guint16 interface_id; /* unique inderface id (for interfaces) */ guint16 max_interface_id; guint16 interface_offsets_count; MonoClass **interfaces_packed; guint16 *interface_offsets_packed; guint8 *interface_bitmap; MonoClass **interfaces; /* * Computed object instance size, total. */ int instance_size; int vtable_size; /* number of slots */ union { int class_size; /* size of area for static fields */ int element_size; /* for array types */ } sizes; /* * From the TypeDef table */ guint32 flags; struct { guint32 first, count; } field, method, property, event; /* loaded on demand */ MonoMarshalType *marshal_info; /* * Field information: Type and location from object base */ MonoClassField *fields; /* Initialized by a call to mono_class_setup_properties () */ MonoProperty *properties; /* Initialized by a call to mono_class_setup_events () */ MonoEvent *events; MonoMethod **methods; /* used as the type of the this argument and when passing the arg by value */ MonoType this_arg; MonoType byval_arg; MonoGenericClass *generic_class; MonoGenericContainer *generic_container; void *reflection_info; void *gc_descr; MonoClassRuntimeInfo *runtime_info; /* next element in the class_cache hash list (in MonoImage) */ MonoClass *next_class_cache; /* Generic vtable. Initialized by a call to mono_class_setup_vtable () */ MonoMethod **vtable; }; #define MONO_CLASS_IMPLEMENTS_INTERFACE(k,uiid) (((uiid) <= (k)->max_interface_id) && ((k)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7)))) int mono_class_interface_offset (MonoClass *klass, MonoClass *itf); /* the interface_offsets array is stored in memory before this struct */ struct MonoVTable { MonoClass *klass; /* * According to comments in gc_gcj.h, this should be the second word in * the vtable. */ void *gc_descr; MonoDomain *domain; /* each object/vtable belongs to exactly one domain */ gpointer data; /* to store static class data */ gpointer type; /* System.Type type for klass */ guint8 *interface_bitmap; guint16 max_interface_id; guint8 rank; guint remote : 1; /* class is remotely activated */ guint initialized : 1; /* cctor has been run */ guint init_failed : 1; /* cctor execution failed */ guint32 imt_collisions_bitmap; /* do not add any fields after vtable, the structure is dynamically extended */ gpointer vtable [MONO_ZERO_LEN_ARRAY]; }; #define MONO_VTABLE_IMPLEMENTS_INTERFACE(vt,uiid) (((uiid) <= (vt)->max_interface_id) && ((vt)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7)))) /* * Generic instantiation data type encoding. */ /* * A particular generic instantiation: * * All instantiations are cached and we don't distinguish between class and method * instantiations here. */ struct _MonoGenericInst { guint id; /* unique ID for debugging */ guint type_argc : 22; /* number of type arguments */ guint is_open : 1; /* if this is an open type */ MonoType **type_argv; }; /* * The generic context: an instantiation of a set of class and method generic parameters. * * NOTE: Never allocate this directly on the heap. It have to be either allocated on the stack, * or embedded within other objects. Don't store pointers to this, because it may be on the stack. * If you really have to, ensure you store a pointer to the embedding object along with it. */ struct _MonoGenericContext { /* The instantiation corresponding to the class generic parameters */ MonoGenericInst *class_inst; /* The instantiation corresponding to the method generic parameters */ MonoGenericInst *method_inst; }; /* * Inflated generic method. */ struct _MonoMethodInflated { union { MonoMethod method; MonoMethodNormal normal; MonoMethodPInvoke pinvoke; } method; MonoMethod *declaring; /* the generic method definition. */ MonoGenericContext context; /* The current instantiation */ gpointer reflection_info; }; /* * A particular instantiation of a generic type. */ struct _MonoGenericClass { MonoClass *container_class; /* the generic type definition */ MonoGenericContext context; /* a context that contains the type instantiation doesn't contain any method instantiation */ guint is_dynamic : 1; /* We're a MonoDynamicGenericClass */ MonoClass *cached_class; /* if present, the MonoClass corresponding to the instantiation. */ }; /* * This is used when instantiating a generic type definition which is * a TypeBuilder. */ struct _MonoDynamicGenericClass { MonoGenericClass generic_class; int count_methods; MonoMethod **methods; int count_ctors; MonoMethod **ctors; int count_fields; MonoClassField *fields; int count_properties; MonoProperty *properties; int count_events; MonoEvent *events; guint initialized; }; /* * The generic container. * * Stores the type parameters of a generic type definition or a generic method definition. */ struct _MonoGenericContainer { MonoGenericContext context; /* If we're a generic method definition in a generic type definition, the generic container of the containing class. */ MonoGenericContainer *parent; /* the generic type definition or the generic method definition corresponding to this container */ union { MonoClass *klass; MonoMethod *method; } owner; int type_argc : 31; /* If true, we're a generic method, otherwise a generic type definition. */ /* Invariant: parent != NULL => is_method */ int is_method : 1; /* Our type parameters. */ MonoGenericParam *type_params; }; /* * A type parameter. */ struct _MonoGenericParam { MonoGenericContainer *owner; /* Type or method this parameter was defined in. */ MonoClass *pklass; /* The corresponding `MonoClass'. */ const char *name; guint16 flags; guint16 num; MonoClass** constraints; /* NULL means end of list */ }; /* * Class information which might be cached by the runtime in the AOT file for * example. Caching this allows us to avoid computing a generic vtable * (class->vtable) in most cases, saving time and avoiding creation of lots of * MonoMethod structures. */ typedef struct MonoCachedClassInfo { guint32 vtable_size; guint has_finalize : 1; guint ghcimpl : 1; guint has_cctor : 1; guint has_nested_classes : 1; guint blittable : 1; guint has_references : 1; guint has_static_refs : 1; guint no_special_static_fields : 1; guint32 cctor_token; MonoImage *finalize_image; guint32 finalize_token; guint32 instance_size; guint32 class_size; guint32 packing_size; guint32 min_align; } MonoCachedClassInfo; typedef struct { const char *name; gconstpointer func; gconstpointer wrapper; gconstpointer trampoline; MonoMethodSignature *sig; } MonoJitICallInfo; typedef struct { guint8 exception_type; char *class_name; /* If kind == TYPE */ char *assembly_name; /* If kind == TYPE or ASSEMBLY */ MonoClass *klass; /* If kind != TYPE */ const char *member_name; /* If kind != TYPE */ gboolean ref_only; /* If kind == ASSEMBLY */ } MonoLoaderError; #define mono_class_has_parent(klass,parent) (((klass)->idepth >= (parent)->idepth) && ((klass)->supertypes [(parent)->idepth - 1] == (parent))) typedef struct { gulong new_object_count; gulong initialized_class_count; gulong generic_vtable_count; gulong used_class_count; gulong method_count; gulong class_vtable_size; gulong class_static_data_size; gulong generic_instance_count; gulong generic_class_count; gulong inflated_method_count; gulong inflated_method_count_2; gulong inflated_type_count; gulong generics_metadata_size; gulong dynamic_code_alloc_count; gulong dynamic_code_bytes_count; gulong dynamic_code_frees_count; gulong imt_tables_size; gulong imt_number_of_tables; gulong imt_number_of_methods; gulong imt_used_slots; gulong imt_slots_with_collisions; gulong imt_max_collisions_in_slot; gulong imt_method_count_when_max_collisions; gulong imt_thunks_size; gulong jit_info_table_insert_count; gulong jit_info_table_remove_count; gulong jit_info_table_lookup_count; gulong hazardous_pointer_count; gboolean enabled; } MonoStats; /* * The definition of the first field in SafeHandle, * Keep in sync with SafeHandle.cs, this is only used * to access the `handle' parameter. */ typedef struct { MonoObject base; void *handle; } MonoSafeHandle; /* * Keep in sync with HandleRef.cs */ typedef struct { MonoObject *wrapper; void *handle; } MonoHandleRef; extern MonoStats mono_stats MONO_INTERNAL; typedef gpointer (*MonoTrampoline) (MonoMethod *method); typedef gpointer (*MonoRemotingTrampoline) (MonoMethod *method, MonoRemotingTarget target); typedef gpointer (*MonoDelegateTrampoline) (MonoClass *klass); typedef gpointer (*MonoLookupDynamicToken) (MonoImage *image, guint32 token, MonoClass **handle_class); typedef gboolean (*MonoGetCachedClassInfo) (MonoClass *klass, MonoCachedClassInfo *res); typedef gboolean (*MonoGetClassFromName) (MonoImage *image, const char *name_space, const char *name, MonoClass **res); void mono_classes_init (void) MONO_INTERNAL; void mono_classes_cleanup (void) MONO_INTERNAL; void mono_class_layout_fields (MonoClass *klass) MONO_INTERNAL; void mono_class_setup_interface_offsets (MonoClass *klass) MONO_INTERNAL; void mono_class_setup_vtable_general (MonoClass *klass, MonoMethod **overrides, int onum) MONO_INTERNAL; void mono_class_setup_vtable (MonoClass *klass) MONO_INTERNAL; void mono_class_setup_methods (MonoClass *klass) MONO_INTERNAL; void mono_class_setup_mono_type (MonoClass *klass) MONO_INTERNAL; void mono_class_setup_parent (MonoClass *klass, MonoClass *parent) MONO_INTERNAL; void mono_class_setup_supertypes (MonoClass *klass) MONO_INTERNAL; GPtrArray* mono_class_get_implemented_interfaces (MonoClass *klass) MONO_INTERNAL; gboolean mono_class_is_open_constructed_type (MonoType *t) MONO_INTERNAL; gboolean mono_class_get_overrides_full (MonoImage *image, guint32 type_token, MonoMethod ***overrides, gint32 *num_overrides, MonoGenericContext *generic_context) MONO_INTERNAL; MonoMethod* mono_class_get_cctor (MonoClass *klass) MONO_INTERNAL; MonoMethod* mono_class_get_finalizer (MonoClass *klass) MONO_INTERNAL; gboolean mono_class_needs_cctor_run (MonoClass *klass, MonoMethod *caller) MONO_INTERNAL; gboolean mono_class_has_special_static_fields (MonoClass *klass) MONO_INTERNAL; void mono_install_trampoline (MonoTrampoline func) MONO_INTERNAL; void mono_install_remoting_trampoline (MonoRemotingTrampoline func) MONO_INTERNAL; void mono_install_delegate_trampoline (MonoDelegateTrampoline func) MONO_INTERNAL; gpointer mono_lookup_dynamic_token (MonoImage *image, guint32 token) MONO_INTERNAL; gpointer mono_lookup_dynamic_token_class (MonoImage *image, guint32 token, MonoClass **handle_class) MONO_INTERNAL; void mono_install_lookup_dynamic_token (MonoLookupDynamicToken func) MONO_INTERNAL; void mono_install_get_cached_class_info (MonoGetCachedClassInfo func) MONO_INTERNAL; void mono_install_get_class_from_name (MonoGetClassFromName func) MONO_INTERNAL; MonoGenericContext* mono_class_get_context (MonoClass *class) MONO_INTERNAL; MonoGenericContext* mono_method_get_context (MonoMethod *method) MONO_INTERNAL; MonoGenericContext* mono_generic_class_get_context (MonoGenericClass *gclass) MONO_INTERNAL; MonoClass* mono_generic_class_get_class (MonoGenericClass *gclass) MONO_INTERNAL; MonoMethod* mono_class_inflate_generic_method_full (MonoMethod *method, MonoClass *klass_hint, MonoGenericContext *context); MonoMethodInflated* mono_method_inflated_lookup (MonoMethodInflated* method, gboolean cache) MONO_INTERNAL; typedef struct { MonoImage *corlib; MonoClass *object_class; MonoClass *byte_class; MonoClass *void_class; MonoClass *boolean_class; MonoClass *sbyte_class; MonoClass *int16_class; MonoClass *uint16_class; MonoClass *int32_class; MonoClass *uint32_class; MonoClass *int_class; MonoClass *uint_class; MonoClass *int64_class; MonoClass *uint64_class; MonoClass *single_class; MonoClass *double_class; MonoClass *char_class; MonoClass *string_class; MonoClass *enum_class; MonoClass *array_class; MonoClass *delegate_class; MonoClass *multicastdelegate_class; MonoClass *asyncresult_class; MonoClass *waithandle_class; MonoClass *typehandle_class; MonoClass *fieldhandle_class; MonoClass *methodhandle_class; MonoClass *systemtype_class; MonoClass *monotype_class; MonoClass *exception_class; MonoClass *threadabortexception_class; MonoClass *thread_class; MonoClass *transparent_proxy_class; MonoClass *real_proxy_class; MonoClass *mono_method_message_class; MonoClass *appdomain_class; MonoClass *field_info_class; MonoClass *method_info_class; MonoClass *stringbuilder_class; MonoClass *math_class; MonoClass *stack_frame_class; MonoClass *stack_trace_class; MonoClass *marshal_class; MonoClass *iserializeable_class; MonoClass *serializationinfo_class; MonoClass *streamingcontext_class; MonoClass *typed_reference_class; MonoClass *argumenthandle_class; MonoClass *marshalbyrefobject_class; MonoClass *monitor_class; MonoClass *iremotingtypeinfo_class; MonoClass *runtimesecurityframe_class; MonoClass *executioncontext_class; MonoClass *internals_visible_class; MonoClass *generic_ilist_class; MonoClass *generic_nullable_class; MonoClass *variant_class; MonoClass *com_object_class; MonoClass *com_interop_proxy_class; MonoClass *iunknown_class; MonoClass *idispatch_class; MonoClass *safehandle_class; MonoClass *handleref_class; MonoClass *attribute_class; MonoClass *customattribute_data_class; } MonoDefaults; extern MonoDefaults mono_defaults MONO_INTERNAL; void mono_loader_init (void) MONO_INTERNAL; void mono_loader_cleanup (void) MONO_INTERNAL; void mono_loader_lock (void) MONO_INTERNAL; void mono_loader_unlock (void) MONO_INTERNAL; void mono_loader_set_error_assembly_load (const char *assembly_name, gboolean ref_only) MONO_INTERNAL; void mono_loader_set_error_type_load (const char *class_name, const char *assembly_name) MONO_INTERNAL; void mono_loader_set_error_method_load (const char *class_name, const char *member_name) MONO_INTERNAL; void mono_loader_set_error_field_load (MonoClass *klass, const char *member_name) MONO_INTERNAL; MonoException * mono_loader_error_prepare_exception (MonoLoaderError *error) MONO_INTERNAL; MonoLoaderError * mono_loader_get_last_error (void) MONO_INTERNAL; void mono_loader_clear_error (void) MONO_INTERNAL; void mono_reflection_init (void) MONO_INTERNAL; void mono_icall_init (void) MONO_INTERNAL; void mono_icall_cleanup (void) MONO_INTERNAL; gpointer mono_method_get_wrapper_data (MonoMethod *method, guint32 id) MONO_INTERNAL; void mono_install_stack_walk (MonoStackWalkImpl func) MONO_INTERNAL; gboolean mono_metadata_has_generic_params (MonoImage *image, guint32 token) MONO_INTERNAL; MonoGenericContainer * mono_metadata_load_generic_params (MonoImage *image, guint32 token, MonoGenericContainer *parent_container); void mono_metadata_load_generic_param_constraints (MonoImage *image, guint32 token, MonoGenericContainer *container); MonoMethodSignature* mono_create_icall_signature (const char *sigstr) MONO_INTERNAL; MonoJitICallInfo * mono_register_jit_icall (gconstpointer func, const char *name, MonoMethodSignature *sig, gboolean is_save) MONO_INTERNAL; void mono_register_jit_icall_wrapper (MonoJitICallInfo *info, gconstpointer wrapper) MONO_INTERNAL; MonoJitICallInfo * mono_find_jit_icall_by_name (const char *name) MONO_INTERNAL; MonoJitICallInfo * mono_find_jit_icall_by_addr (gconstpointer addr) MONO_INTERNAL; gboolean mono_class_set_failure (MonoClass *klass, guint32 ex_type, void *ex_data) MONO_INTERNAL; MonoException* mono_class_get_exception_for_failure (MonoClass *klass) MONO_INTERNAL; char* mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format) MONO_INTERNAL; char* mono_type_get_full_name (MonoClass *class) MONO_INTERNAL; MonoArrayType *mono_dup_array_type (MonoArrayType *a) MONO_INTERNAL; MonoMethodSignature *mono_metadata_signature_deep_dup (MonoMethodSignature *sig) MONO_INTERNAL; void mono_image_init_name_cache (MonoImage *image); gboolean mono_class_is_nullable (MonoClass *klass) MONO_INTERNAL; MonoClass *mono_class_get_nullable_param (MonoClass *klass) MONO_INTERNAL; /* object debugging functions, for use inside gdb */ void mono_object_describe (MonoObject *obj); void mono_object_describe_fields (MonoObject *obj); void mono_value_describe_fields (MonoClass* klass, const char* addr); void mono_class_describe_statics (MonoClass* klass); /*Enum validation related functions*/ gboolean mono_type_is_valid_enum_basetype (MonoType * type); gboolean mono_class_is_valid_enum (MonoClass *klass); MonoType * mono_type_get_full (MonoImage *image, guint32 type_token, MonoGenericContext *context) MONO_INTERNAL; #endif /* __MONO_METADATA_CLASS_INTERBALS_H__ */