1 #ifndef __MONO_OBJECT_INTERNALS_H__
2 #define __MONO_OBJECT_INTERNALS_H__
4 #include <mono/metadata/object.h>
5 #include <mono/metadata/reflection.h>
6 #include <mono/metadata/mempool.h>
7 #include <mono/io-layer/io-layer.h>
11 #define mono_assert(expr) G_STMT_START{ \
15 char *msg = g_strdup_printf ("file %s: line %d (%s): " \
16 "assertion failed: (%s)", __FILE__, __LINE__, \
17 __PRETTY_FUNCTION__, #expr); \
18 ex = mono_get_exception_execution_engine (msg); \
20 mono_raise_exception (ex); \
23 #define mono_assert_not_reached() G_STMT_START{ \
25 char *msg = g_strdup_printf ("file %s: line %d (%s): " \
26 "should not be reached", __FILE__, __LINE__, __PRETTY_FUNCTION__); \
27 ex = mono_get_exception_execution_engine (msg); \
29 mono_raise_exception (ex); \
32 #define mono_assert(expr) G_STMT_START{ \
36 char *msg = g_strdup_printf ("file %s: line %d: " \
37 "assertion failed: (%s)", __FILE__, __LINE__, \
39 ex = mono_get_exception_execution_engine (msg); \
41 mono_raise_exception (ex); \
44 #define mono_assert_not_reached() G_STMT_START{ \
46 char *msg = g_strdup_printf ("file %s: line %d): " \
47 "should not be reached", __FILE__, __LINE__); \
48 ex = mono_get_exception_execution_engine (msg); \
50 mono_raise_exception (ex); \
54 #define mono_assert(expr) g_assert(expr)
55 #define mono_assert_not_reached() g_assert_not_reached()
58 #define MONO_CHECK_ARG(arg, expr) G_STMT_START{ \
62 char *msg = g_strdup_printf ("assertion `%s' failed", \
64 if (arg) {} /* check if the name exists */ \
65 ex = mono_get_exception_argument (#arg, msg); \
67 mono_raise_exception (ex); \
70 #define MONO_CHECK_ARG_NULL(arg) G_STMT_START{ \
74 if (arg) {} /* check if the name exists */ \
75 ex = mono_get_exception_argument_null (#arg); \
76 mono_raise_exception (ex); \
80 /* 16 == default capacity */
81 #define mono_stringbuilder_capacity(sb) ((sb)->str ? ((sb)->str->length) : 16)
86 } MonoMarshalByRefObject;
88 /* This is a copy of System.AppDomain */
89 struct _MonoAppDomain {
90 MonoMarshalByRefObject mbr;
98 MonoString *cached_str;
110 } MonoArgumentHandle;
113 MonoMethodSignature *sig;
119 struct _MonoException {
121 MonoArray *trace_ips;
122 MonoObject *inner_ex;
124 MonoString *help_link;
125 MonoString *class_name;
126 MonoString *stack_trace;
127 MonoString *remote_stack_trace;
128 gint32 remote_stack_index;
135 } MonoSystemException;
138 MonoSystemException base;
139 MonoString *param_name;
140 } MonoArgumentException;
143 MonoSystemException base;
145 MonoString *type_name;
146 } MonoTypeLoadException;
150 MonoObject *async_state;
152 MonoObject *async_delegate;
154 MonoObject *object_data;
155 MonoBoolean sync_completed;
156 MonoBoolean completed;
157 MonoBoolean endinvoke_called;
158 MonoObject *async_callback;
159 MonoObject *execution_context;
160 MonoObject *original_context;
164 MonoMarshalByRefObject object;
166 MonoBoolean disposed;
169 /* This is a copy of System.Runtime.Remoting.Messaging.CallType */
172 CallType_BeginInvoke = 1,
173 CallType_EndInvoke = 2,
177 struct _MonoReflectionType {
184 MonoReflectionType *class_to_proxy;
186 MonoObject *unwrapped_server;
187 gint32 target_domain_id;
188 MonoString *target_uri;
189 MonoObject *object_identity;
191 MonoObject *stub_data;
195 MonoRealProxy real_proxy;
196 MonoObject *com_object;
197 } MonoComInteropProxy;
200 MonoMarshalByRefObject object;
201 GHashTable* itf_hash;
207 MonoRemoteClass *remote_class;
208 MonoBoolean custom_type_info;
209 } MonoTransparentProxy;
213 MonoReflectionMethod *method;
216 MonoArray *arg_types;
220 MonoAsyncResult *async_result;
227 gint32 native_offset;
228 MonoReflectionMethod *method;
229 MonoString *filename;
232 MonoString *internal_method_name;
237 int lock_thread_id; /* to be used as the pre-shifted thread id in thin locks */
239 MonoArray *cached_culture_info;
241 MonoBoolean threadpool_thread;
245 MonoException *abort_exc;
246 MonoObject *abort_state;
247 guint64 tid; /* This is accessed as a gsize in the code (so it can hold a 64bit pointer on systems that need it), but needs to reserve 64 bits of space on all machines as it corresponds to a field in managed code */
250 gpointer *static_data;
253 MonoAppContext *current_appcontext;
255 MonoObject *start_obj;
256 GSList *appdomain_refs;
257 MonoBoolean interruption_requested;
258 gpointer suspend_event;
259 gpointer suspended_event;
260 gpointer resume_event;
261 MonoObject *synch_lock;
262 guint8* serialized_culture_info;
263 guint32 serialized_culture_info_len;
264 guint8* serialized_ui_culture_info;
265 guint32 serialized_ui_culture_info_len;
266 MonoObject *execution_context;
268 * These fields are used to avoid having to increment corlib versions
269 * when a new field is added to the unmanaged MonoThread structure.
271 MonoBoolean thread_dump_requested;
272 gpointer end_stack; /* This is only used when running in the debugger. */
282 MonoReflectionType *type;
284 } MonoSerializationEntry;
288 MonoObject *additional;
289 } MonoStreamingContext;
293 MonoBoolean readOnly;
294 MonoString *AMDesignator;
295 MonoString *PMDesignator;
296 MonoString *DateSeparator;
297 MonoString *TimeSeparator;
298 MonoString *ShortDatePattern;
299 MonoString *LongDatePattern;
300 MonoString *ShortTimePattern;
301 MonoString *LongTimePattern;
302 MonoString *MonthDayPattern;
303 MonoString *YearMonthPattern;
304 MonoString *FullDateTimePattern;
305 MonoString *RFC1123Pattern;
306 MonoString *SortableDateTimePattern;
307 MonoString *UniversalSortableDateTimePattern;
308 guint32 FirstDayOfWeek;
309 MonoObject *Calendar;
310 guint32 CalendarWeekRule;
311 MonoArray *AbbreviatedDayNames;
313 MonoArray *MonthNames;
314 MonoArray *AbbreviatedMonthNames;
315 MonoArray *ShortDatePatterns;
316 MonoArray *LongDatePatterns;
317 MonoArray *ShortTimePatterns;
318 MonoArray *LongTimePatterns;
319 } MonoDateTimeFormatInfo;
324 MonoBoolean readOnly;
325 MonoString *decimalFormats;
326 MonoString *currencyFormats;
327 MonoString *percentFormats;
328 MonoString *digitPattern;
329 MonoString *zeroPattern;
330 gint32 currencyDecimalDigits;
331 MonoString *currencyDecimalSeparator;
332 MonoString *currencyGroupSeparator;
333 MonoArray *currencyGroupSizes;
334 gint32 currencyNegativePattern;
335 gint32 currencyPositivePattern;
336 MonoString *currencySymbol;
337 MonoString *naNSymbol;
338 MonoString *negativeInfinitySymbol;
339 MonoString *negativeSign;
340 guint32 numberDecimalDigits;
341 MonoString *numberDecimalSeparator;
342 MonoString *numberGroupSeparator;
343 MonoArray *numberGroupSizes;
344 gint32 numberNegativePattern;
345 gint32 percentDecimalDigits;
346 MonoString *percentDecimalSeparator;
347 MonoString *percentGroupSeparator;
348 MonoArray *percentGroupSizes;
349 gint32 percentNegativePattern;
350 gint32 percentPositivePattern;
351 MonoString *percentSymbol;
352 MonoString *perMilleSymbol;
353 MonoString *positiveInfinitySymbol;
354 MonoString *positiveSign;
355 } MonoNumberFormatInfo;
360 MonoString *icu_name;
361 gpointer ICU_collator;
366 MonoBoolean is_read_only;
369 gint32 specific_lcid;
370 gint32 datetime_index;
372 MonoBoolean use_user_override;
373 MonoNumberFormatInfo *number_format;
374 MonoDateTimeFormatInfo *datetime_format;
375 MonoObject *textinfo;
377 MonoString *displayname;
378 MonoString *englishname;
379 MonoString *nativename;
380 MonoString *iso3lang;
381 MonoString *iso2lang;
382 MonoString *icu_name;
383 MonoString *win3lang;
384 MonoCompareInfo *compareinfo;
385 const gint32 *calendar_data;
386 const void* text_info_data;
392 MonoString *iso2name;
393 MonoString *iso3name;
394 MonoString *win3name;
395 MonoString *english_name;
396 MonoString *currency_symbol;
397 MonoString *iso_currency_symbol;
398 MonoString *currency_english_name;
412 } MonoInterfaceTypeAttribute;
414 /* used to free a dynamic method */
415 typedef void (*MonoFreeMethodFunc) (MonoDomain *domain, MonoMethod *method);
417 /* Used to initialize the method pointers inside vtables */
418 typedef gboolean (*MonoInitVTableFunc) (MonoVTable *vtable);
420 /* remoting and async support */
423 mono_async_result_new (MonoDomain *domain, HANDLE handle,
424 MonoObject *state, gpointer data, MonoObject *object_data);
427 mono_wait_handle_new (MonoDomain *domain, HANDLE handle);
430 mono_message_init (MonoDomain *domain, MonoMethodMessage *this_obj,
431 MonoReflectionMethod *method, MonoArray *out_args);
434 mono_remoting_invoke (MonoObject *real_proxy, MonoMethodMessage *msg,
435 MonoObject **exc, MonoArray **out_args);
438 mono_message_invoke (MonoObject *target, MonoMethodMessage *msg,
439 MonoObject **exc, MonoArray **out_args);
442 mono_method_call_message_new (MonoMethod *method, gpointer *params, MonoMethod *invoke,
443 MonoDelegate **cb, MonoObject **state);
446 mono_method_return_message_restore (MonoMethod *method, gpointer *params, MonoArray *out_args);
449 mono_delegate_ctor (MonoObject *this_obj, MonoObject *target, gpointer addr);
452 mono_class_get_allocation_ftn (MonoVTable *vtable, gboolean for_box, gboolean *pass_size_in_words);
455 mono_runtime_free_method (MonoDomain *domain, MonoMethod *method);
457 /* runtime initialization functions */
458 typedef void (*MonoExceptionFunc) (MonoException *ex);
461 mono_install_handler (MonoExceptionFunc func);
464 mono_install_runtime_invoke (MonoInvokeFunc func);
467 mono_install_compile_method (MonoCompileFunc func);
470 mono_install_free_method (MonoFreeMethodFunc func);
473 mono_install_init_vtable (MonoInitVTableFunc func);
476 mono_type_initialization_init (void);
479 mono_type_initialization_cleanup (void);
482 mono_thread_get_tls_key (void);
485 mono_thread_get_tls_offset (void);
488 mono_domain_get_tls_key (void);
491 mono_domain_get_tls_offset (void);
493 /* Reflection and Reflection.Emit support */
496 * The following structure must match the C# implementation in our corlib.
499 struct _MonoReflectionMethod {
503 MonoReflectionType *reftype;
506 typedef struct _MonoReflectionGenericMethod MonoReflectionGenericMethod;
507 struct _MonoReflectionGenericMethod {
508 MonoReflectionMethod method;
511 struct _MonoDelegate {
513 MonoObject *target_type;
515 MonoString *method_name;
517 gpointer delegate_trampoline;
518 MonoReflectionMethod *method_info;
521 typedef struct _MonoMulticastDelegate MonoMulticastDelegate;
522 struct _MonoMulticastDelegate {
523 MonoDelegate delegate;
524 MonoMulticastDelegate *prev;
527 struct _MonoReflectionField {
530 MonoClassField *field;
532 MonoReflectionType *type;
536 struct _MonoReflectionProperty {
539 MonoProperty *property;
542 struct _MonoReflectionEvent {
550 MonoReflectionType *ClassImpl;
551 MonoObject *DefaultValueImpl;
552 MonoObject *MemberImpl;
553 MonoString *NameImpl;
556 MonoObject *MarshalAsImpl;
557 } MonoReflectionParameter;
559 struct _MonoReflectionMethodBody {
564 MonoBoolean init_locals;
565 guint32 local_var_sig_token;
569 struct _MonoReflectionAssembly {
571 MonoAssembly *assembly;
572 MonoObject *resolve_event_holder;
574 MonoObject *evidence; /* Evidence */
575 MonoObject *minimum; /* PermissionSet - for SecurityAction.RequestMinimum */
576 MonoObject *optional; /* PermissionSet - for SecurityAction.RequestOptional */
577 MonoObject *refuse; /* PermissionSet - for SecurityAction.RequestRefuse */
578 MonoObject *granted; /* PermissionSet - for the resolved assembly granted permissions */
579 MonoObject *denied; /* PermissionSet - for the resolved assembly denied permissions */
581 MonoBoolean from_byte_array;
586 MonoReflectionType *utype;
592 MonoReflectionType *parent;
593 MonoReflectionType *ret;
600 MonoReflectionType *parent;
602 MonoReflectionMethod *get;
603 MonoReflectionMethod *set;
608 MonoReflectionType *declaring_type;
609 MonoReflectionType *reflected_type;
611 MonoReflectionMethod *add_method;
612 MonoReflectionMethod *remove_method;
613 MonoReflectionMethod *raise_method;
615 MonoArray *other_methods;
620 MonoString *name_space;
621 MonoReflectionType *etype;
622 MonoReflectionType *nested_in;
623 MonoReflectionAssembly *assembly;
625 MonoBoolean isprimitive;
631 } MonoReflectionILTokenInfo;
640 MonoArray *ex_handlers;
641 gint32 num_token_fixups;
642 MonoArray *token_fixups;
643 } MonoReflectionILGen;
650 } MonoILExceptionInfo;
653 MonoReflectionType *extype;
657 gint32 filter_offset;
658 } MonoILExceptionBlock;
662 MonoReflectionType *catch_type;
663 gint32 filter_offset;
667 gint32 handler_offset;
668 gint32 handler_length;
669 } MonoReflectionExceptionHandlingClause;
673 MonoReflectionType *local_type;
674 MonoBoolean is_pinned;
676 } MonoReflectionLocalVariableInfo;
680 * Must have the same layout as MonoReflectionLocalVariableInfo, since
681 * LocalBuilder inherits from it under net 2.0.
684 MonoReflectionType *type;
685 MonoBoolean is_pinned;
688 } MonoReflectionLocalBuilder;
697 MonoString *marshaltype;
698 MonoReflectionType *marshaltyperef;
700 MonoBoolean has_size;
701 } MonoReflectionMarshal;
708 MonoReflectionMarshal *marshal_info;
712 MonoObject *def_value;
713 } MonoReflectionParamBuilder;
718 MonoReflectionILGen *ilgen;
719 MonoArray *parameters;
727 MonoBoolean init_locals;
728 MonoArray *param_modreq;
729 MonoArray *param_modopt;
730 MonoArray *permissions;
731 } MonoReflectionCtorBuilder;
736 MonoReflectionType *rtype;
737 MonoArray *parameters;
743 MonoReflectionILGen *ilgen;
747 MonoReflectionMethod *override_method;
749 MonoString *dllentry;
754 MonoBoolean init_locals;
755 MonoGenericContainer *generic_container;
756 MonoArray *generic_params;
757 MonoArray *return_modreq;
758 MonoArray *return_modopt;
759 MonoArray *param_modreq;
760 MonoArray *param_modopt;
761 MonoArray *permissions;
762 } MonoReflectionMethodBuilder;
767 MonoReflectionType *parent;
768 MonoReflectionType *ret;
769 MonoArray *parameters;
773 } MonoReflectionArrayMethod;
778 MonoString *filename;
782 } MonoReflectionResource;
789 } MonoReflectionWin32Resource;
794 } MonoReflectionPermissionSet;
797 MonoReflectionAssembly assembly;
798 MonoDynamicAssembly *dynamic_assembly;
799 MonoReflectionMethod *entry_point;
804 MonoArray *resources;
805 MonoArray *public_key;
811 MonoBoolean delay_sign;
813 MonoArray *loaded_modules;
814 MonoArray *win32_resources;
816 MonoArray *permissions_minimum;
817 MonoArray *permissions_optional;
818 MonoArray *permissions_refused;
821 MonoBoolean corlib_internal;
822 MonoArray *type_forwarders;
823 } MonoReflectionAssemblyBuilder;
828 MonoReflectionType *type;
830 MonoObject *def_value;
833 MonoReflectionType *typeb;
836 MonoReflectionMarshal *marshal_info;
837 MonoClassField *handle;
840 } MonoReflectionFieldBuilder;
846 MonoReflectionType *type;
847 MonoArray *parameters;
849 MonoObject *def_value;
850 MonoReflectionMethodBuilder *set_method;
851 MonoReflectionMethodBuilder *get_method;
853 } MonoReflectionPropertyBuilder;
855 struct _MonoReflectionModule {
858 MonoReflectionAssembly *assembly;
861 MonoString *scopename;
862 MonoBoolean is_resource;
867 MonoReflectionModule module;
868 MonoDynamicImage *dynamic_image;
874 MonoReflectionAssemblyBuilder *assemblyb;
875 MonoArray *global_methods;
876 MonoArray *global_fields;
878 MonoArray *resources;
879 } MonoReflectionModuleBuilder;
882 MonoReflectionType type;
885 MonoReflectionType *parent;
886 MonoReflectionType *nesting_type;
887 MonoArray *interfaces;
891 MonoArray *properties;
899 MonoReflectionModuleBuilder *module;
902 MonoGenericContainer *generic_container;
903 MonoArray *generic_params;
904 MonoArray *permissions;
905 MonoReflectionType *created;
906 } MonoReflectionTypeBuilder;
909 MonoReflectionType type;
910 MonoReflectionTypeBuilder *tbuilder;
911 MonoReflectionMethodBuilder *mbuilder;
914 MonoReflectionType *base_type;
915 MonoArray *iface_constraints;
918 } MonoReflectionGenericParam;
920 typedef struct _MonoReflectionGenericClass MonoReflectionGenericClass;
921 struct _MonoReflectionGenericClass {
922 MonoReflectionType type;
923 MonoReflectionType *generic_type;
930 MonoString *codebase;
931 gint32 major, minor, build, revision;
932 MonoObject *cultureInfo;
936 MonoArray *publicKey;
938 guint32 versioncompat;
940 } MonoReflectionAssemblyName;
945 MonoReflectionType *type;
946 MonoReflectionTypeBuilder *typeb;
948 MonoReflectionMethodBuilder *add_method;
949 MonoReflectionMethodBuilder *remove_method;
950 MonoReflectionMethodBuilder *raise_method;
951 MonoArray *other_methods;
954 } MonoReflectionEventBuilder;
958 MonoReflectionMethod *ctor;
960 } MonoReflectionCustomAttr;
967 MonoString *entry_point;
968 MonoBoolean exact_spelling;
969 MonoBoolean preserve_sig;
970 MonoBoolean set_last_error;
971 MonoBoolean best_fit_mapping;
972 MonoBoolean throw_on_unmappable;
973 } MonoReflectionDllImportAttribute;
979 MonoBoolean set_last_error;
980 MonoBoolean best_fit_mapping;
981 MonoBoolean throw_on_unmappable;
982 } MonoReflectionUnmanagedFunctionPointerAttribute;
988 MonoReflectionType *rtype;
989 MonoArray *parameters;
992 MonoReflectionModule *module;
993 MonoBoolean skip_visibility;
994 MonoBoolean init_locals;
995 MonoReflectionILGen *ilgen;
998 } MonoReflectionDynamicMethod;
1002 MonoReflectionModuleBuilder *module;
1003 MonoArray *arguments;
1005 MonoReflectionType *return_type;
1007 guint32 unmanaged_call_conv;
1008 } MonoReflectionSigHelper;
1011 RESOURCE_LOCATION_EMBEDDED = 1,
1012 RESOURCE_LOCATION_ANOTHER_ASSEMBLY = 2,
1013 RESOURCE_LOCATION_IN_MANIFEST = 4
1018 MonoReflectionAssembly *assembly;
1019 MonoString *filename;
1021 } MonoManifestResourceInfo;
1023 /* Keep in sync with System.GenericParameterAttributes */
1025 GENERIC_PARAMETER_ATTRIBUTE_NON_VARIANT = 0,
1026 GENERIC_PARAMETER_ATTRIBUTE_COVARIANT = 1,
1027 GENERIC_PARAMETER_ATTRIBUTE_CONTRAVARIANT = 2,
1028 GENERIC_PARAMETER_ATTRIBUTE_VARIANCE_MASK = 3,
1030 GENERIC_PARAMETER_ATTRIBUTE_NO_SPECIAL_CONSTRAINT = 0,
1031 GENERIC_PARAMETER_ATTRIBUTE_REFERENCE_TYPE_CONSTRAINT = 4,
1032 GENERIC_PARAMETER_ATTRIBUTE_VALUE_TYPE_CONSTRAINT = 8,
1033 GENERIC_PARAMETER_ATTRIBUTE_CONSTRUCTOR_CONSTRAINT = 16,
1034 GENERIC_PARAMETER_ATTRIBUTE_SPECIAL_CONSTRAINTS_MASK = 28
1035 } GenericParameterAttributes;
1037 void mono_image_create_pefile (MonoReflectionModuleBuilder *module, HANDLE file);
1038 void mono_image_basic_init (MonoReflectionAssemblyBuilder *assembly);
1039 MonoReflectionModule * mono_image_load_module (MonoReflectionAssemblyBuilder *assembly, MonoString *file_name);
1040 guint32 mono_image_insert_string (MonoReflectionModuleBuilder *module, MonoString *str);
1041 guint32 mono_image_create_token (MonoDynamicImage *assembly, MonoObject *obj, gboolean create_methodspec);
1042 guint32 mono_image_create_method_token (MonoDynamicImage *assembly, MonoObject *obj, MonoArray *opt_param_types);
1043 void mono_image_module_basic_init (MonoReflectionModuleBuilder *module);
1045 void mono_reflection_setup_internal_class (MonoReflectionTypeBuilder *tb);
1047 void mono_reflection_create_internal_class (MonoReflectionTypeBuilder *tb);
1049 void mono_reflection_setup_generic_class (MonoReflectionTypeBuilder *tb);
1051 void mono_reflection_create_generic_class (MonoReflectionTypeBuilder *tb);
1053 MonoReflectionType* mono_reflection_create_runtime_class (MonoReflectionTypeBuilder *tb);
1055 void mono_reflection_get_dynamic_overrides (MonoClass *klass, MonoMethod ***overrides, int *num_overrides);
1057 void mono_reflection_create_dynamic_method (MonoReflectionDynamicMethod *m);
1059 void mono_reflection_initialize_generic_parameter (MonoReflectionGenericParam *gparam);
1062 mono_class_bind_generic_parameters (MonoType *type, int type_argc, MonoType **types);
1064 mono_reflection_bind_generic_parameters (MonoReflectionType *type, int type_argc, MonoType **types);
1065 MonoReflectionMethod*
1066 mono_reflection_bind_generic_method_parameters (MonoReflectionMethod *method, MonoArray *types);
1068 mono_reflection_generic_class_initialize (MonoReflectionGenericClass *type, MonoArray *methods, MonoArray *ctors, MonoArray *fields, MonoArray *properties, MonoArray *events);
1069 MonoReflectionEvent *
1070 mono_reflection_event_builder_get_event_info (MonoReflectionTypeBuilder *tb, MonoReflectionEventBuilder *eb);
1072 MonoArray *mono_reflection_sighelper_get_signature_local (MonoReflectionSigHelper *sig);
1074 MonoArray *mono_reflection_sighelper_get_signature_field (MonoReflectionSigHelper *sig);
1076 MonoReflectionMarshal* mono_reflection_marshal_from_marshal_spec (MonoDomain *domain, MonoClass *klass, MonoMarshalSpec *spec);
1079 mono_reflection_lookup_dynamic_token (MonoImage *image, guint32 token, MonoClass **handle_class);
1082 mono_reflection_call_is_assignable_to (MonoClass *klass, MonoClass *oklass);
1085 mono_image_build_metadata (MonoReflectionModuleBuilder *module);
1088 mono_get_constant_value_from_blob (MonoDomain* domain, MonoTypeEnum type, const char *blob, void *value);
1091 mono_release_type_locks (MonoThread *thread);
1094 mono_string_to_utf8_mp (MonoMemPool *mp, MonoString *s);
1097 mono_array_clone_in_domain (MonoDomain *domain, MonoArray *array);
1100 mono_array_full_copy (MonoArray *src, MonoArray *dest);
1103 mono_remote_class_vtable (MonoDomain *domain, MonoRemoteClass *remote_class, MonoRealProxy *real_proxy);
1105 MonoMethodSignature*
1106 mono_method_get_signature_full (MonoMethod *method, MonoImage *image, guint32 token, MonoGenericContext *context);
1109 mono_upgrade_remote_class (MonoDomain *domain, MonoObject *tproxy, MonoClass *klass);
1112 mono_get_addr_from_ftnptr (gpointer descr);
1115 mono_nullable_init (guint8 *buf, MonoObject *value, MonoClass *klass);
1118 mono_nullable_box (guint8 *buf, MonoClass *klass);
1120 #endif /* __MONO_OBJECT_INTERNALS_H__ */