mono-api-unsorted.html
mini_compile_generic_method
Prototype: mini_compile_generic_method
mono_alloc_special_static_data
Prototype: mono_alloc_special_static_data
mono_bounded_array_class_get
MonoClass*
mono_bounded_array_class_get (MonoClass *eclass, guint32 rank, gboolean bounded)
Parameters
element_class: element class rank: the dimension of the array classbounded: whenever the array has non-zero bounds
Returns
a class object describing the array with element type element_type and
dimension rank.
mono_check_corlib_version
Prototype: mono_check_corlib_version
mono_compile_method
gpointer
mono_compile_method (MonoMethod *method)
Parameters
method: The method to compile.
Remarks
This JIT-compiles the method, and returns the pointer to the native code
produced.
mono_config_for_assembly
Prototype: mono_config_for_assembly
mono_create_icall_signature
Prototype: mono_create_icall_signature
mono_create_jit_trampoline
Prototype: mono_create_jit_trampoline
mono_create_jump_table
Prototype: mono_create_jump_table
mono_create_jump_trampoline
Prototype: mono_create_jump_trampoline
mono_dllmap_insert
Prototype: mono_dllmap_insert
mono_environment_exitcode_get
Prototype: mono_environment_exitcode_get
mono_environment_exitcode_set
Prototype: mono_environment_exitcode_set
mono_find_method_by_name
Prototype: mono_find_method_by_name
mono_free_method
Prototype: mono_free_method
mono_free_verify_list
Prototype: mono_free_verify_list
mono_get_config_dir
Prototype: mono_get_config_dir
mono_get_constant_value_from_blob
Prototype: mono_get_constant_value_from_blob
mono_get_corlib
Prototype: mono_get_corlib
mono_get_delegate_invoke
MonoMethod*
mono_get_delegate_invoke (MonoClass *klass)
Parameters
klass: The delegate class
Returns
the MonoMethod for the "Invoke" method in the delegate klass
mono_get_framework_version
Prototype: mono_get_framework_version
mono_get_method_full
Prototype: mono_get_method_full
mono_get_method
Prototype: mono_get_method
mono_get_root_domain
MonoDomain*
mono_get_root_domain (void)
Returns
the root appdomain, to obtain the current domain, use mono_domain_get ()
Remarks
The root AppDomain is the initial domain created by the runtime when it is
initialized. Programs execute on this AppDomain, but can create new ones
later. Currently there is no unmanaged API to create new AppDomains, this
must be done from managed code.
mono_get_runtime_version
Prototype: mono_get_runtime_version
mono_get_special_static_data
Prototype: mono_get_special_static_data
mono_init_from_assembly
MonoDomain*
mono_init_from_assembly (const char *domain_name, const char *filename)
Returns
the initial domain.
Remarks
Creates the initial application domain and initializes the mono_defaults
structure.
This function is guaranteed to not run any IL code.
The runtime is initialized using the runtime version required by the
provided executable. The version is determined by looking at the exe
configuration file and the version PE field)
mono_init
MonoDomain*
mono_init (const char *domain_name)
Returns
the initial domain.
Remarks
Creates the initial application domain and initializes the mono_defaults
structure.
This function is guaranteed to not run any IL code.
The runtime is initialized using the default runtime version.
mono_init_version
MonoDomain*
mono_init_version (const char *domain_name, const char *version)
Returns
the initial domain.
Remarks
Creates the initial application domain and initializes the mono_defaults
structure.
This function is guaranteed to not run any IL code.
The runtime is initialized using the provided rutime version.
mono_invoke_delegate
Prototype: mono_invoke_delegate
mono_jit_exec
int
mono_jit_exec (MonoDomain *domain, MonoAssembly *assembly, int argc, char *argv[])
Parameters
assembly: reference to an assemblyargc: argument countargv: argument vector
Remarks
Start execution of a program.
mono_lookup_internal_call
Prototype: mono_lookup_internal_call
mono_lookup_pinvoke_call
Prototype: mono_lookup_pinvoke_call
mono_main
Prototype: mono_main
mono_message_init
Prototype: mono_message_init
mono_message_invoke
Prototype: mono_message_invoke
mono_parse_default_optimizations
Prototype: mono_parse_default_optimizations
mono_perform_abc_removal
void
mono_perform_abc_removal (MonoCompile *cfg)
Parameters
cfg: Control Flow Graph
Remarks
Performs the ABC removal from a cfg in SSA form.
It does the following:
- Prepare the evaluation area
- Allocate memory for the relation graph in the evaluation area
(of course, only for variable definitions) and summarize there all
variable definitions
- Allocate memory for the evaluation contexts in the evaluation area
- Recursively process all the BBs in the dominator tree (it is enough
to invoke the processing on the entry BB)
cfg: the method code
mono_ptr_class_get
Prototype: mono_ptr_class_get
mono_register_bundled_assemblies
Prototype: mono_register_bundled_assemblies
mono_release_type_locks
Prototype: mono_release_type_locks
mono_remote_class
MonoRemoteClass*
mono_remote_class (MonoDomain *domain, MonoString *class_name, MonoClass *proxy_class)
Parameters
domain: the application domainclass_name: name of the remote class
Remarks
Creates and initializes a MonoRemoteClass object for a remote type.
Can raise an exception on failure.
mono_remote_class_vtable
Prototype: mono_remote_class_vtable
mono_runtime_class_init
Prototype: mono_runtime_class_init
mono_runtime_cleanup
void
mono_runtime_cleanup (MonoDomain *domain)
Parameters
domain: unused.
Remarks
Internal routine.
This must not be called while there are still running threads executing
managed code.
mono_runtime_free_method
void
mono_runtime_free_method (MonoDomain *domain, MonoMethod *method)
Remarks
domain; domain where the method is hosted
method: method to release
This routine is invoked to free the resources associated with
a method that has been JIT compiled. This is used to discard
methods that were used only temporarily (for example, used in marshalling)
mono_runtime_get_main_args
MonoArray*
mono_runtime_get_main_args (void)
Returns
a MonoArray with the arguments passed to the main program
mono_runtime_init
void
mono_runtime_init (MonoDomain *domain, MonoThreadStartCB start_cb,
MonoThreadAttachCB attach_cb)
Parameters
domain: domain returned by mono_init ()
Remarks
Initialize the core AppDomain: this function will run also some
IL initialization code, so it needs the execution engine to be fully
operational.
AppDomain.SetupInformation is set up in mono_runtime_exec_main, where
we know the entry_assembly.
mono_runtime_is_shutting_down
gboolean
mono_runtime_is_shutting_down (void)
Remarks
Returns whether the runtime has been flagged for shutdown.
This is consumed by the P:System.Environment.HasShutdownStarted
property.
mono_runtime_object_init
Prototype: mono_runtime_object_init
mono_runtime_quit
Prototype: mono_runtime_quit
mono_runtime_run_main
int
mono_runtime_run_main (MonoMethod *method, int argc, char* argv[],
MonoObject **exc)
Parameters
method: the method to start the application with (usually Main)argc: number of arguments from the command lineargv: array of strings from the command lineexc: excetption results
Remarks
Execute a standard Main() method (argc/argv contains the
executable name). This method also sets the command line argument value
needed by System.Environment.
mono_table_info_get_rows
Prototype: mono_table_info_get_rows
mono_upgrade_remote_class
void
mono_upgrade_remote_class (MonoDomain *domain, MonoObject *proxy_object, MonoClass *klass)
Parameters
domain: the application domaintproxy: the proxy whose remote class has to be upgraded.klass: class to which the remote class can be casted.
Remarks
Updates the vtable of the remote class by adding the necessary method slots
and interface offsets so it can be safely casted to klass. klass can be a
class or an interface.
mono_upgrade_remote_class_wrapper
Prototype: mono_upgrade_remote_class_wrapper
mono_verify_corlib
Prototype: mono_verify_corlib
mono_vtable_get_static_field_data
Prototype: mono_vtable_get_static_field_data