1 #ifndef __MONO_METADATA_CLASS_INTERBALS_H__
2 #define __MONO_METADATA_CLASS_INTERBALS_H__
4 #include <mono/metadata/class.h>
5 #include <mono/metadata/object.h>
6 #include <mono/io-layer/io-layer.h>
7 #include "mono/utils/mono-compiler.h"
9 #define MONO_CLASS_IS_ARRAY(c) ((c)->rank)
11 #define MONO_DEFAULT_SUPERTABLE_SIZE 6
13 extern gboolean mono_print_vtable;
15 typedef void (*MonoStackWalkImpl) (MonoStackWalk func, gboolean do_il_offset, gpointer user_data);
17 typedef struct _MonoMethodNormal MonoMethodNormal;
18 typedef struct _MonoMethodWrapper MonoMethodWrapper;
19 typedef struct _MonoMethodInflated MonoMethodInflated;
20 typedef struct _MonoMethodPInvoke MonoMethodPInvoke;
23 #define WRAPPER(e,n) MONO_WRAPPER_ ## e,
24 #include "wrapper-types.h"
30 MONO_TYPE_NAME_FORMAT_IL,
31 MONO_TYPE_NAME_FORMAT_REFLECTION,
32 MONO_TYPE_NAME_FORMAT_FULL_NAME,
33 MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED
37 MONO_REMOTING_TARGET_UNKNOWN,
38 MONO_REMOTING_TARGET_APPDOMAIN,
39 MONO_REMOTING_TARGET_COMINTEROP
43 guint16 flags; /* method flags */
44 guint16 iflags; /* method implementation flags */
47 MonoMethodSignature *signature;
48 MonoGenericContainer *generic_container;
49 /* name is useful mostly for debugging */
51 /* this is used by the inlining algorithm */
52 unsigned int inline_info:1;
53 unsigned int uses_this:1;
54 unsigned int wrapper_type:5;
55 unsigned int string_ctor:1;
56 unsigned int save_lmf:1;
57 unsigned int dynamic:1; /* created & destroyed during runtime */
58 unsigned int is_inflated:1; /* whether we're a MonoMethodInflated */
59 unsigned int skip_visibility:1; /* whenever to skip JIT visibility checks */
63 struct _MonoMethodNormal {
65 MonoMethodHeader *header;
68 struct _MonoMethodWrapper {
69 MonoMethodNormal method;
73 struct _MonoMethodPInvoke {
76 /* add marshal info */
77 guint16 piflags; /* pinvoke flags */
78 guint16 implmap_idx; /* index into IMPLMAP */
82 MonoType *generic_type;
83 gpointer reflection_info;
87 * MonoClassField is just a runtime representation of the metadata for
88 * field, it doesn't contain the data directly. Static fields are
89 * stored in MonoVTable->data. Instance fields are allocated in the
90 * objects after the object header.
92 struct _MonoClassField {
93 /* Type of the field */
96 /* If this is an instantiated generic type, this is the
97 * "original" type, ie. the MONO_TYPE_VAR or MONO_TYPE_GENERICINST
98 * it was instantiated from.
100 MonoInflatedField *generic_info;
103 * Offset where this field is stored; if it is an instance
104 * field, it's the offset from the start of the object, if
105 * it's static, it's from the start of the memory chunk
106 * allocated for statics for the class.
113 * If the field is constant, pointer to the metadata constant
115 * If the field has an RVA flag, pointer to the data.
120 /* Type where the field was defined */
124 * If the field is constant, the type of the constant.
126 MonoTypeEnum def_type;
129 /* a field is ignored if it's named "_Deleted" and it has the specialname and rtspecialname flags set */
130 #define mono_field_is_deleted(field) (((field)->type->attrs & (FIELD_ATTRIBUTE_SPECIAL_NAME | FIELD_ATTRIBUTE_RT_SPECIAL_NAME)) \
131 && (strcmp ((field)->name, "_Deleted") == 0))
134 MonoClassField *field;
136 MonoMarshalSpec *mspec;
142 MonoMethod *ptr_to_str;
143 MonoMethod *str_to_ptr;
144 MonoMarshalField fields [MONO_ZERO_LEN_ARRAY];
147 struct _MonoProperty {
165 /* type of exception being "on hold" for later processing (see exception_type) */
167 MONO_EXCEPTION_NONE = 0,
168 MONO_EXCEPTION_SECURITY_LINKDEMAND = 1,
169 MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND = 2,
170 MONO_EXCEPTION_INVALID_PROGRAM = 3,
171 MONO_EXCEPTION_UNVERIFIABLE_IL = 4,
172 MONO_EXCEPTION_MISSING_METHOD = 5,
173 MONO_EXCEPTION_MISSING_FIELD = 6,
174 MONO_EXCEPTION_TYPE_LOAD = 7,
175 MONO_EXCEPTION_FILE_NOT_FOUND = 8,
176 MONO_EXCEPTION_METHOD_ACCESS = 9,
177 MONO_EXCEPTION_FIELD_ACCESS = 10,
178 /* add other exception type */
181 /* This struct collects the info needed for the runtime use of a class,
182 * like the vtables for a domain, the GC descriptor, etc.
186 /* domain_vtables is indexed by the domain id and the size is max_domain + 1 */
187 MonoVTable *domain_vtables [MONO_ZERO_LEN_ARRAY];
188 } MonoClassRuntimeInfo;
193 /* The underlying type of the enum */
194 MonoType *enum_basetype;
195 /* element class for arrays and enum */
196 MonoClass *element_class;
197 /* used for subtype checks */
198 MonoClass *cast_class;
199 /* array dimension */
203 /* We use init_pending to detect cyclic calls to mono_class_init */
204 guint init_pending : 1;
206 /* A class contains static and non static data. Static data can be
207 * of the same type as the class itselfs, but it does not influence
208 * the instance size of the class. To avoid cyclic calls to
209 * mono_class_init (from mono_class_instance_size ()) we first
210 * initialise all non static fields. After that we set size_inited
211 * to 1, because we know the instance size now. After that we
212 * initialise all static fields.
214 guint size_inited : 1;
215 guint valuetype : 1; /* derives from System.ValueType */
216 guint enumtype : 1; /* derives from System.Enum */
217 guint blittable : 1; /* class is blittable */
218 guint unicode : 1; /* class uses unicode char when marshalled */
219 guint wastypebuilder : 1; /* class was created at runtime from a TypeBuilder */
222 guint packing_size : 4;
224 guint ghcimpl : 1; /* class has its own GetHashCode impl */
225 guint has_finalize : 1; /* class has its own Finalize impl */
226 guint marshalbyref : 1; /* class is a MarshalByRefObject */
227 guint contextbound : 1; /* class is a ContextBoundObject */
228 guint delegate : 1; /* class is a Delegate */
229 guint gc_descr_inited : 1; /* gc_descr is initialized */
230 guint has_cctor : 1; /* class has a cctor */
231 guint has_references : 1; /* it has GC-tracked references in the instance */
233 guint has_static_refs : 1; /* it has static fields that are GC-tracked */
234 guint no_special_static_fields : 1; /* has no thread/context static fields */
235 /* directly or indirectly derives from ComImport attributed class.
236 * this means we need to create a proxy for instances of this class
237 * for COM Interop. set this flag on loading so all we need is a quick check
238 * during object creation rather than having to traverse supertypes
240 guint is_com_object : 1;
242 guint8 exception_type; /* MONO_EXCEPTION_* */
243 void* exception_data; /* Additional information about the exception */
244 guint32 declsec_flags; /* declarative security attributes flags */
247 MonoClass *nested_in;
248 GList *nested_classes;
252 const char *name_space;
254 /* for fast subtype checks */
255 MonoClass **supertypes;
258 guint16 interface_count;
259 guint16 interface_id; /* unique inderface id (for interfaces) */
260 guint16 max_interface_id;
262 guint16 interface_offsets_count;
263 MonoClass **interfaces_packed;
264 guint16 *interface_offsets_packed;
265 guint8 *interface_bitmap;
267 MonoClass **interfaces;
270 * Computed object instance size, total.
273 int vtable_size; /* number of slots */
275 int class_size; /* size of area for static fields */
276 int element_size; /* for array types */
280 * From the TypeDef table
284 guint32 first, count;
285 } field, method, property, event;
287 /* loaded on demand */
288 MonoMarshalType *marshal_info;
291 * Field information: Type and location from object base
293 MonoClassField *fields;
295 /* Initialized by a call to mono_class_setup_properties () */
296 MonoProperty *properties;
298 /* Initialized by a call to mono_class_setup_events () */
301 MonoMethod **methods;
303 /* used as the type of the this argument and when passing the arg by value */
307 MonoGenericClass *generic_class;
308 MonoGenericContainer *generic_container;
310 void *reflection_info;
314 MonoClassRuntimeInfo *runtime_info;
316 /* next element in the class_cache hash list (in MonoImage) */
317 MonoClass *next_class_cache;
319 /* Generic vtable. Initialized by a call to mono_class_setup_vtable () */
323 #define MONO_CLASS_IMPLEMENTS_INTERFACE(k,uiid) (((uiid) <= (k)->max_interface_id) && ((k)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7))))
324 int mono_class_interface_offset (MonoClass *klass, MonoClass *itf);
326 /* the interface_offsets array is stored in memory before this struct */
330 * According to comments in gc_gcj.h, this should be the second word in
334 MonoDomain *domain; /* each object/vtable belongs to exactly one domain */
335 gpointer data; /* to store static class data */
336 gpointer type; /* System.Type type for klass */
337 guint8 *interface_bitmap;
338 guint16 max_interface_id;
340 guint remote : 1; /* class is remotely activated */
341 guint initialized : 1; /* cctor has been run */
342 guint init_failed : 1; /* cctor execution failed */
343 guint32 imt_collisions_bitmap;
344 /* do not add any fields after vtable, the structure is dynamically extended */
345 gpointer vtable [MONO_ZERO_LEN_ARRAY];
348 #define MONO_VTABLE_IMPLEMENTS_INTERFACE(vt,uiid) (((uiid) <= (vt)->max_interface_id) && ((vt)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7))))
351 * Generic instantiation data type encoding.
355 * A particular generic instantiation:
357 * All instantiations are cached and we don't distinguish between class and method
358 * instantiations here.
360 struct _MonoGenericInst {
361 guint id; /* unique ID for debugging */
362 guint type_argc : 22; /* number of type arguments */
363 guint is_open : 1; /* if this is an open type */
364 MonoType **type_argv;
368 * The generic context: an instantiation of a set of class and method generic parameters.
370 * NOTE: Never allocate this directly on the heap. It have to be either allocated on the stack,
371 * or embedded within other objects. Don't store pointers to this, because it may be on the stack.
372 * If you really have to, ensure you store a pointer to the embedding object along with it.
374 struct _MonoGenericContext {
375 /* The instantiation corresponding to the class generic parameters */
376 MonoGenericInst *class_inst;
377 /* The instantiation corresponding to the method generic parameters */
378 MonoGenericInst *method_inst;
382 * Inflated generic method.
384 struct _MonoMethodInflated {
387 MonoMethodNormal normal;
388 MonoMethodPInvoke pinvoke;
390 MonoMethod *declaring; /* the generic method definition. */
391 MonoGenericContext context; /* The current instantiation */
392 gpointer reflection_info;
396 * A particular instantiation of a generic type.
398 struct _MonoGenericClass {
399 MonoClass *container_class; /* the generic type definition */
400 MonoGenericContext context; /* a context that contains the type instantiation doesn't contain any method instantiation */
401 guint is_dynamic : 1; /* We're a MonoDynamicGenericClass */
402 MonoClass *cached_class; /* if present, the MonoClass corresponding to the instantiation. */
406 * This is used when instantiating a generic type definition which is
409 struct _MonoDynamicGenericClass {
410 MonoGenericClass generic_class;
412 MonoMethod **methods;
416 MonoClassField *fields;
417 int count_properties;
418 MonoProperty *properties;
425 * The generic container.
427 * Stores the type parameters of a generic type definition or a generic method definition.
429 struct _MonoGenericContainer {
430 MonoGenericContext context;
431 /* If we're a generic method definition in a generic type definition,
432 the generic container of the containing class. */
433 MonoGenericContainer *parent;
434 /* the generic type definition or the generic method definition corresponding to this container */
440 /* If true, we're a generic method, otherwise a generic type definition. */
441 /* Invariant: parent != NULL => is_method */
443 /* Our type parameters. */
444 MonoGenericParam *type_params;
450 struct _MonoGenericParam {
451 MonoGenericContainer *owner; /* Type or method this parameter was defined in. */
452 MonoClass *pklass; /* The corresponding `MonoClass'. */
456 MonoClass** constraints; /* NULL means end of list */
460 * Class information which might be cached by the runtime in the AOT file for
461 * example. Caching this allows us to avoid computing a generic vtable
462 * (class->vtable) in most cases, saving time and avoiding creation of lots of
463 * MonoMethod structures.
465 typedef struct MonoCachedClassInfo {
467 guint has_finalize : 1;
470 guint has_nested_classes : 1;
472 guint has_references : 1;
473 guint has_static_refs : 1;
474 guint no_special_static_fields : 1;
476 MonoImage *finalize_image;
477 guint32 finalize_token;
478 guint32 instance_size;
480 guint32 packing_size;
482 } MonoCachedClassInfo;
487 gconstpointer wrapper;
488 gconstpointer trampoline;
489 MonoMethodSignature *sig;
493 guint8 exception_type;
494 char *class_name; /* If kind == TYPE */
495 char *assembly_name; /* If kind == TYPE or ASSEMBLY */
496 MonoClass *klass; /* If kind != TYPE */
497 const char *member_name; /* If kind != TYPE */
498 gboolean ref_only; /* If kind == ASSEMBLY */
501 #define mono_class_has_parent(klass,parent) (((klass)->idepth >= (parent)->idepth) && ((klass)->supertypes [(parent)->idepth - 1] == (parent)))
504 gulong new_object_count;
505 gulong initialized_class_count;
506 gulong generic_vtable_count;
507 gulong used_class_count;
509 gulong class_vtable_size;
510 gulong class_static_data_size;
511 gulong generic_instance_count;
512 gulong generic_class_count;
513 gulong inflated_method_count;
514 gulong inflated_method_count_2;
515 gulong inflated_type_count;
516 gulong generics_metadata_size;
517 gulong dynamic_code_alloc_count;
518 gulong dynamic_code_bytes_count;
519 gulong dynamic_code_frees_count;
520 gulong imt_tables_size;
521 gulong imt_number_of_tables;
522 gulong imt_number_of_methods;
523 gulong imt_used_slots;
524 gulong imt_slots_with_collisions;
525 gulong imt_max_collisions_in_slot;
526 gulong imt_method_count_when_max_collisions;
527 gulong imt_thunks_size;
528 gulong jit_info_table_insert_count;
529 gulong jit_info_table_remove_count;
530 gulong jit_info_table_lookup_count;
531 gulong hazardous_pointer_count;
536 * The definition of the first field in SafeHandle,
537 * Keep in sync with SafeHandle.cs, this is only used
538 * to access the `handle' parameter.
546 * Keep in sync with HandleRef.cs
553 extern MonoStats mono_stats MONO_INTERNAL;
555 typedef gpointer (*MonoTrampoline) (MonoMethod *method);
556 typedef gpointer (*MonoRemotingTrampoline) (MonoMethod *method, MonoRemotingTarget target);
557 typedef gpointer (*MonoDelegateTrampoline) (MonoClass *klass);
559 typedef gpointer (*MonoLookupDynamicToken) (MonoImage *image, guint32 token, MonoClass **handle_class);
561 typedef gboolean (*MonoGetCachedClassInfo) (MonoClass *klass, MonoCachedClassInfo *res);
563 typedef gboolean (*MonoGetClassFromName) (MonoImage *image, const char *name_space, const char *name, MonoClass **res);
566 mono_classes_init (void) MONO_INTERNAL;
569 mono_classes_cleanup (void) MONO_INTERNAL;
572 mono_class_layout_fields (MonoClass *klass) MONO_INTERNAL;
575 mono_class_setup_interface_offsets (MonoClass *klass) MONO_INTERNAL;
578 mono_class_setup_vtable_general (MonoClass *klass, MonoMethod **overrides, int onum) MONO_INTERNAL;
581 mono_class_setup_vtable (MonoClass *klass) MONO_INTERNAL;
584 mono_class_setup_methods (MonoClass *klass) MONO_INTERNAL;
587 mono_class_setup_mono_type (MonoClass *klass) MONO_INTERNAL;
590 mono_class_setup_parent (MonoClass *klass, MonoClass *parent) MONO_INTERNAL;
593 mono_class_setup_supertypes (MonoClass *klass) MONO_INTERNAL;
596 mono_class_get_implemented_interfaces (MonoClass *klass) MONO_INTERNAL;
599 mono_class_is_open_constructed_type (MonoType *t) MONO_INTERNAL;
602 mono_class_get_overrides_full (MonoImage *image, guint32 type_token, MonoMethod ***overrides, gint32 *num_overrides,
603 MonoGenericContext *generic_context) MONO_INTERNAL;
606 mono_class_get_cctor (MonoClass *klass) MONO_INTERNAL;
609 mono_class_get_finalizer (MonoClass *klass) MONO_INTERNAL;
612 mono_class_needs_cctor_run (MonoClass *klass, MonoMethod *caller) MONO_INTERNAL;
615 mono_class_has_special_static_fields (MonoClass *klass) MONO_INTERNAL;
618 mono_install_trampoline (MonoTrampoline func) MONO_INTERNAL;
621 mono_install_remoting_trampoline (MonoRemotingTrampoline func) MONO_INTERNAL;
624 mono_install_delegate_trampoline (MonoDelegateTrampoline func) MONO_INTERNAL;
627 mono_lookup_dynamic_token (MonoImage *image, guint32 token) MONO_INTERNAL;
630 mono_lookup_dynamic_token_class (MonoImage *image, guint32 token, MonoClass **handle_class) MONO_INTERNAL;
633 mono_install_lookup_dynamic_token (MonoLookupDynamicToken func) MONO_INTERNAL;
636 mono_install_get_cached_class_info (MonoGetCachedClassInfo func) MONO_INTERNAL;
639 mono_install_get_class_from_name (MonoGetClassFromName func) MONO_INTERNAL;
642 mono_class_get_context (MonoClass *class) MONO_INTERNAL;
645 mono_method_get_context (MonoMethod *method) MONO_INTERNAL;
648 mono_generic_class_get_context (MonoGenericClass *gclass) MONO_INTERNAL;
651 mono_generic_class_get_class (MonoGenericClass *gclass) MONO_INTERNAL;
654 mono_class_inflate_generic_method_full (MonoMethod *method, MonoClass *klass_hint, MonoGenericContext *context);
657 mono_method_inflated_lookup (MonoMethodInflated* method, gboolean cache) MONO_INTERNAL;
661 MonoClass *object_class;
662 MonoClass *byte_class;
663 MonoClass *void_class;
664 MonoClass *boolean_class;
665 MonoClass *sbyte_class;
666 MonoClass *int16_class;
667 MonoClass *uint16_class;
668 MonoClass *int32_class;
669 MonoClass *uint32_class;
670 MonoClass *int_class;
671 MonoClass *uint_class;
672 MonoClass *int64_class;
673 MonoClass *uint64_class;
674 MonoClass *single_class;
675 MonoClass *double_class;
676 MonoClass *char_class;
677 MonoClass *string_class;
678 MonoClass *enum_class;
679 MonoClass *array_class;
680 MonoClass *delegate_class;
681 MonoClass *multicastdelegate_class;
682 MonoClass *asyncresult_class;
683 MonoClass *waithandle_class;
684 MonoClass *typehandle_class;
685 MonoClass *fieldhandle_class;
686 MonoClass *methodhandle_class;
687 MonoClass *systemtype_class;
688 MonoClass *monotype_class;
689 MonoClass *exception_class;
690 MonoClass *threadabortexception_class;
691 MonoClass *thread_class;
692 MonoClass *transparent_proxy_class;
693 MonoClass *real_proxy_class;
694 MonoClass *mono_method_message_class;
695 MonoClass *appdomain_class;
696 MonoClass *field_info_class;
697 MonoClass *method_info_class;
698 MonoClass *stringbuilder_class;
699 MonoClass *math_class;
700 MonoClass *stack_frame_class;
701 MonoClass *stack_trace_class;
702 MonoClass *marshal_class;
703 MonoClass *iserializeable_class;
704 MonoClass *serializationinfo_class;
705 MonoClass *streamingcontext_class;
706 MonoClass *typed_reference_class;
707 MonoClass *argumenthandle_class;
708 MonoClass *marshalbyrefobject_class;
709 MonoClass *monitor_class;
710 MonoClass *iremotingtypeinfo_class;
711 MonoClass *runtimesecurityframe_class;
712 MonoClass *executioncontext_class;
713 MonoClass *internals_visible_class;
714 MonoClass *generic_ilist_class;
715 MonoClass *generic_nullable_class;
716 MonoClass *variant_class;
717 MonoClass *com_object_class;
718 MonoClass *com_interop_proxy_class;
719 MonoClass *iunknown_class;
720 MonoClass *idispatch_class;
721 MonoClass *safehandle_class;
722 MonoClass *handleref_class;
723 MonoClass *attribute_class;
724 MonoClass *customattribute_data_class;
727 extern MonoDefaults mono_defaults MONO_INTERNAL;
730 mono_loader_init (void) MONO_INTERNAL;
733 mono_loader_cleanup (void) MONO_INTERNAL;
736 mono_loader_lock (void) MONO_INTERNAL;
739 mono_loader_unlock (void) MONO_INTERNAL;
742 mono_loader_set_error_assembly_load (const char *assembly_name, gboolean ref_only) MONO_INTERNAL;
745 mono_loader_set_error_type_load (const char *class_name, const char *assembly_name) MONO_INTERNAL;
748 mono_loader_set_error_method_load (const char *class_name, const char *member_name) MONO_INTERNAL;
751 mono_loader_set_error_field_load (MonoClass *klass, const char *member_name) MONO_INTERNAL;
754 mono_loader_error_prepare_exception (MonoLoaderError *error) MONO_INTERNAL;
757 mono_loader_get_last_error (void) MONO_INTERNAL;
760 mono_loader_clear_error (void) MONO_INTERNAL;
763 mono_reflection_init (void) MONO_INTERNAL;
766 mono_icall_init (void) MONO_INTERNAL;
769 mono_icall_cleanup (void) MONO_INTERNAL;
772 mono_method_get_wrapper_data (MonoMethod *method, guint32 id) MONO_INTERNAL;
775 mono_install_stack_walk (MonoStackWalkImpl func) MONO_INTERNAL;
778 mono_metadata_has_generic_params (MonoImage *image, guint32 token) MONO_INTERNAL;
780 MonoGenericContainer *
781 mono_metadata_load_generic_params (MonoImage *image, guint32 token,
782 MonoGenericContainer *parent_container);
785 mono_metadata_load_generic_param_constraints (MonoImage *image, guint32 token,
786 MonoGenericContainer *container);
789 mono_create_icall_signature (const char *sigstr) MONO_INTERNAL;
792 mono_register_jit_icall (gconstpointer func, const char *name, MonoMethodSignature *sig, gboolean is_save) MONO_INTERNAL;
795 mono_register_jit_icall_wrapper (MonoJitICallInfo *info, gconstpointer wrapper) MONO_INTERNAL;
798 mono_find_jit_icall_by_name (const char *name) MONO_INTERNAL;
801 mono_find_jit_icall_by_addr (gconstpointer addr) MONO_INTERNAL;
804 mono_class_set_failure (MonoClass *klass, guint32 ex_type, void *ex_data) MONO_INTERNAL;
807 mono_class_get_exception_for_failure (MonoClass *klass) MONO_INTERNAL;
810 mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format) MONO_INTERNAL;
813 mono_type_get_full_name (MonoClass *class) MONO_INTERNAL;
815 MonoArrayType *mono_dup_array_type (MonoArrayType *a) MONO_INTERNAL;
816 MonoMethodSignature *mono_metadata_signature_deep_dup (MonoMethodSignature *sig) MONO_INTERNAL;
819 mono_image_init_name_cache (MonoImage *image);
821 gboolean mono_class_is_nullable (MonoClass *klass) MONO_INTERNAL;
822 MonoClass *mono_class_get_nullable_param (MonoClass *klass) MONO_INTERNAL;
824 /* object debugging functions, for use inside gdb */
825 void mono_object_describe (MonoObject *obj);
826 void mono_object_describe_fields (MonoObject *obj);
827 void mono_value_describe_fields (MonoClass* klass, const char* addr);
828 void mono_class_describe_statics (MonoClass* klass);
830 /*Enum validation related functions*/
832 mono_type_is_valid_enum_basetype (MonoType * type);
835 mono_class_is_valid_enum (MonoClass *klass);
838 mono_type_get_full (MonoImage *image, guint32 type_token, MonoGenericContext *context) MONO_INTERNAL;
840 #endif /* __MONO_METADATA_CLASS_INTERBALS_H__ */