3 * This file contains the default set of the mono internal calls.
4 * Each type that has internal call methods must be declared here
5 * with the ICALL_TYPE macro as follows:
7 * ICALL_TYPE(typeid, typename, first_icall_id)
9 * typeid must be a C symbol name unique to the type, don't worry about namespace
10 * pollution, since it will be automatically prefixed to avoid it.
11 * typename is a C string containing the full name of the type
12 * first_icall_id is the symbol ID of the first internal call of the declared
15 * The list of internal calls of the methods of a type must follow the
16 * type declaration. Each internal call is defined by the following macro:
18 * ICALL(icallid, methodname, cfuncptr)
20 * icallid must be a C symbol, unique for each icall defined in this file and
21 * typically equal to the typeid + '_' + a sequential number.
22 * methodname is a C string defining the method name and the optional signature
23 * (the signature is required only when several internal calls in the type
25 * cfuncptr is the C function that implements the internal call. Note that this
26 * file is included at the end of metadata/icall.c, so the C function must be
27 * visible to the compiler there.
29 * *** Adding a new internal call ***
30 * Remember that ICALL_TYPE declarations must be kept sorted wrt each other
31 * ICALL_TYPE declaration. The same happens for ICALL declarations, but only
32 * limited to the icall list of each type. The sorting is based on the type or
34 * When adding a new icall, make sure it is inserted correctly in the list and
35 * that it defines a unique ID. ID are currently numbered and ordered, but if
36 * you need to insert a method in the middle, don't bother renaming all the symbols.
37 * Remember to change also the first_icall_id argument in the ICALL_TYPE
38 * declaration if you add a new icall at the beginning of a type's icall list.
41 * *** (Experimental) Cooperative GC support via Handles and MonoError ***
42 * An icall can use the coop GC handles infrastructure from handles.h to avoid some
43 * boilerplate when manipulating managed objects from runtime code and to use MonoError for
44 * threading exceptions out to managed callerrs:
46 * HANDLES(icallid, methodname, cfuncptr, return-type, number-of-parameters, (parameter-types))
48 * managed types are just MonoObject, MonoString, etc. `*` and Handle prefix are appended automatically.
49 * Types must be single identifiers, and be handled in icall-table.h.
50 * MonoError is added to the list automatically.
51 * A function with no parameters is "0, ()"
52 * "Out" and "InOut" types are appended with "Out" and "InOut". In is assumed.
53 * Out and InOut raw pointers get "**" appended. In gets just "*".
54 * Out/InOut only applied to managed pointers/handles.
55 * Things like "int*" are supported by typedefs like "typedef int *int_ptr".
56 * "void*" and "HANDLE" are written "gpointer".
57 * The list of available types is in icall-table.h.
58 * Using a type not there errors unceremoniously.
60 * An icall with a HANDLES() declaration wrapped around it will have a generated wrapper
62 * (1) Updates the coop handle stack on entry and exit
63 * (2) Call the cfuncptr with a new signature:
64 * (a) All managed object reference in arguments will be wrapped in a type-unsafe handle
65 * (i.e., MonoString* becomes struct { MonoString* raw }* aka MonoRawHandle*)
66 * (b) the same for the return value (MonoObject* return becomes MonoObjectHandle)
67 * (c) An additional final argument is added of type MonoError*
68 * example: class object {
69 * [MethodImplOptions(InternalCall)]
70 * String some_icall (object[] x);
72 * should be implemented as:
73 * MonoStringHandle some_icall (MonoObjectHandle this_handle, MonoArrayHandle x_handle, MonoError *error);
74 * (3) The wrapper will automatically call mono_error_set_pending_exception (error) and raise the resulting exception.
75 * Note: valuetypes use the same calling convention as normal.
77 * HANDLES() wrappers are generated dynamically by marshal-ilgen.c, using metadata to see types, producing type-unsafe handles (void*).
78 * HANDLES() additional small wrappers are generated statically by icall-table.h, using the signatures here, producing
79 * type-safe handles, i.e. MonoString* => MonoRawHandle* => struct { MonoString** raw }.
84 // _ref means marshal-ilgen.c created a handle for an interior pointer.
85 // _ptr means marshal-ilgen.c passed the parameter through unchanged.
86 // At the C level, they are the same.
88 // If the C# managed declaration for an icall, with 7 parameters, is:
89 // object your_internal_call (int x, object y, ref int z, IntPtr p, ref MyStruct c, ref MyClass, out string s);
92 // HANDLES(ID_n, "your_internal_call", "ves_icall_your_internal_call", MonoObject, 7, (gint32, MonoObject, gint32_ref, gpointer, MyStruct_ref, MyClassInOut, MonoStringOut))
94 // 7 is the number of parameters, the length of the last macro parameter.
95 // IntPtr is unchecked. You could also say gsize or gssize.
97 // and marshal-ilgen.c will generate a call to
98 // MonoRawHandle* ves_icall_your_internal_call_raw (gint32, MonoRawHandle*, gint32*, gpointer, MyStruct*, MonoRawHandle*, MonoRawHandle*);
100 // whose body will be generated by the HANDLES() macro, and which will call the following function that you have to implement:
101 // MonoObjectHandle ves_icall_your_internal_call (gint32, MonoObjectHandle, gint32*, gpointer, MyStruct*, MyClassHandleInOut, MonoStringOut, MonoError *error);
103 // Note the extra MonoError* argument.
104 // Note that "ref" becomes "HandleInOut" for managed types.
105 // "_ref" becomes "*" for unmanaged types.
106 // "_out" becomes "HandleOut" or "*".
107 // "HandleIn" is the default for managed types, and is just called "Handle".
111 #include "icall-def-netcore.h"
114 ICALL_TYPE(CLR_INTEROP_SYS
, "Interop/Sys", CLR_INTEROP_SYS_1
)
115 NOHANDLES(ICALL(CLR_INTEROP_SYS_1
, "DoubleToString", ves_icall_Interop_Sys_DoubleToString
))
117 ICALL_TYPE(NATIVEMETHODS
, "Microsoft.Win32.NativeMethods", NATIVEMETHODS_1
)
118 // FIXME Much of this could be NOHANDLES().
119 HANDLES(NATIVEMETHODS_1
, "CloseProcess", ves_icall_Microsoft_Win32_NativeMethods_CloseProcess
, MonoBoolean
, 1, (gpointer
))
120 HANDLES(NATIVEMETHODS_2
, "GetCurrentProcess", ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcess
, gpointer
, 0, ())
121 HANDLES(NATIVEMETHODS_3
, "GetCurrentProcessId", ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcessId
, gint32
, 0, ())
122 HANDLES(NATIVEMETHODS_4
, "GetExitCodeProcess", ves_icall_Microsoft_Win32_NativeMethods_GetExitCodeProcess
, MonoBoolean
, 2, (gpointer
, gint32_ref
))
123 HANDLES(NATIVEMETHODS_5
, "GetPriorityClass", ves_icall_Microsoft_Win32_NativeMethods_GetPriorityClass
, gint32
, 1, (gpointer
))
124 HANDLES(NATIVEMETHODS_6
, "GetProcessTimes", ves_icall_Microsoft_Win32_NativeMethods_GetProcessTimes
, MonoBoolean
, 5, (gpointer
, gint64_ref
, gint64_ref
, gint64_ref
, gint64_ref
))
125 HANDLES(NATIVEMETHODS_7
, "GetProcessWorkingSetSize", ves_icall_Microsoft_Win32_NativeMethods_GetProcessWorkingSetSize
, MonoBoolean
, 3, (gpointer
, gsize_ref
, gsize_ref
))
126 HANDLES(NATIVEMETHODS_8
, "SetPriorityClass", ves_icall_Microsoft_Win32_NativeMethods_SetPriorityClass
, MonoBoolean
, 2, (gpointer
, gint32
))
127 HANDLES(NATIVEMETHODS_9
, "SetProcessWorkingSetSize", ves_icall_Microsoft_Win32_NativeMethods_SetProcessWorkingSetSize
, MonoBoolean
, 3, (gpointer
, gsize
, gsize
))
128 HANDLES(NATIVEMETHODS_10
, "TerminateProcess", ves_icall_Microsoft_Win32_NativeMethods_TerminateProcess
, MonoBoolean
, 2, (gpointer
, gint32
))
129 HANDLES(NATIVEMETHODS_11
, "WaitForInputIdle", ves_icall_Microsoft_Win32_NativeMethods_WaitForInputIdle
, gint32
, 2, (gpointer
, gint32
))
132 ICALL_TYPE(COMPROX
, "Mono.Interop.ComInteropProxy", COMPROX_1
)
133 HANDLES(COMPROX_1
, "AddProxy", ves_icall_Mono_Interop_ComInteropProxy_AddProxy
, void, 2, (gpointer
,MonoComInteropProxy
))
134 HANDLES(COMPROX_2
, "FindProxy", ves_icall_Mono_Interop_ComInteropProxy_FindProxy
, MonoComInteropProxy
, 1, (gpointer
))
137 ICALL_TYPE(TLS_PROVIDER_FACTORY
, "Mono.Net.Security.MonoTlsProviderFactory", TLS_PROVIDER_FACTORY_1
)
138 HANDLES(TLS_PROVIDER_FACTORY_1
, "IsBtlsSupported", ves_icall_Mono_TlsProviderFactory_IsBtlsSupported
, MonoBoolean
, 0, ())
140 ICALL_TYPE(RUNTIME
, "Mono.Runtime", RUNTIME_20
)
141 HANDLES(RUNTIME_20
, "AnnotateMicrosoftTelemetry_internal", ves_icall_Mono_Runtime_AnnotateMicrosoftTelemetry
, void, 2, (const_char_ptr
, const_char_ptr
))
142 HANDLES(RUNTIME_19
, "CheckCrashReportLog_internal", ves_icall_Mono_Runtime_CheckCrashReportingLog
, int, 2, (const_char_ptr
, MonoBoolean
))
143 HANDLES(RUNTIME_1
, "DisableMicrosoftTelemetry", ves_icall_Mono_Runtime_DisableMicrosoftTelemetry
, void, 0, ())
144 HANDLES(RUNTIME_15
, "DumpStateSingle_internal", ves_icall_Mono_Runtime_DumpStateSingle
, MonoString
, 2, (guint64_ref
, guint64_ref
))
145 HANDLES(RUNTIME_16
, "DumpStateTotal_internal", ves_icall_Mono_Runtime_DumpStateTotal
, MonoString
, 2, (guint64_ref
, guint64_ref
))
146 HANDLES(RUNTIME_18
, "EnableCrashReportLog_internal", ves_icall_Mono_Runtime_EnableCrashReportingLog
, void, 1, (const_char_ptr
))
147 HANDLES(RUNTIME_2
, "EnableMicrosoftTelemetry_internal", ves_icall_Mono_Runtime_EnableMicrosoftTelemetry
, void, 7, (const_char_ptr
, const_char_ptr
, const_char_ptr
, const_char_ptr
, const_char_ptr
, const_char_ptr
, const_char_ptr
))
148 HANDLES(RUNTIME_3
, "ExceptionToState_internal", ves_icall_Mono_Runtime_ExceptionToState
, MonoString
, 3, (MonoException
, guint64_ref
, guint64_ref
))
149 HANDLES(RUNTIME_4
, "GetDisplayName", ves_icall_Mono_Runtime_GetDisplayName
, MonoString
, 0, ())
150 HANDLES(RUNTIME_12
, "GetNativeStackTrace", ves_icall_Mono_Runtime_GetNativeStackTrace
, MonoString
, 1, (MonoException
))
151 NOHANDLES(ICALL(RUNTIME_21
, "RegisterReportingForAllNativeLibs_internal", ves_icall_Mono_Runtime_RegisterReportingForAllNativeLibs
))
152 NOHANDLES(ICALL(RUNTIME_17
, "RegisterReportingForNativeLib_internal", ves_icall_Mono_Runtime_RegisterReportingForNativeLib
))
153 HANDLES(RUNTIME_13
, "SendMicrosoftTelemetry_internal", ves_icall_Mono_Runtime_SendMicrosoftTelemetry
, void, 3, (const_char_ptr
, guint64
, guint64
))
154 HANDLES(RUNTIME_14
, "WriteStateToFile_internal", ves_icall_Mono_Runtime_DumpTelemetry
, void, 3, (const_char_ptr
, guint64
, guint64
))
156 ICALL_TYPE(RTCLASS
, "Mono.RuntimeClassHandle", RTCLASS_1
)
157 HANDLES(RTCLASS_1
, "GetTypeFromClass", ves_icall_Mono_RuntimeClassHandle_GetTypeFromClass
, MonoType_ptr
, 1, (MonoClass_ptr
))
159 ICALL_TYPE(RTPTRARRAY
, "Mono.RuntimeGPtrArrayHandle", RTPTRARRAY_1
)
160 HANDLES(RTPTRARRAY_1
, "GPtrArrayFree", ves_icall_Mono_RuntimeGPtrArrayHandle_GPtrArrayFree
, void, 1, (GPtrArray_ptr
))
162 ICALL_TYPE(RTMARSHAL
, "Mono.RuntimeMarshal", RTMARSHAL_1
)
163 HANDLES(RTMARSHAL_1
, "FreeAssemblyName", ves_icall_Mono_RuntimeMarshal_FreeAssemblyName
, void, 2, (MonoAssemblyName_ref
, MonoBoolean
))
165 ICALL_TYPE(SAFESTRMARSHAL
, "Mono.SafeStringMarshal", SAFESTRMARSHAL_1
)
166 HANDLES(SAFESTRMARSHAL_1
, "GFree", ves_icall_Mono_SafeStringMarshal_GFree
, void, 1, (gpointer
))
167 HANDLES(SAFESTRMARSHAL_2
, "StringToUtf8", ves_icall_Mono_SafeStringMarshal_StringToUtf8
, char_ptr
, 1, (MonoString
))
169 #ifndef PLATFORM_RO_FS
170 ICALL_TYPE(KPAIR
, "Mono.Security.Cryptography.KeyPairPersistence", KPAIR_1
)
171 HANDLES(KPAIR_1
, "_CanSecure", ves_icall_Mono_Security_Cryptography_KeyPairPersistence_CanSecure
, MonoBoolean
, 1, (const_gunichar2_ptr
))
172 HANDLES(KPAIR_2
, "_IsMachineProtected", ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsMachineProtected
, MonoBoolean
, 1, (const_gunichar2_ptr
))
173 HANDLES(KPAIR_3
, "_IsUserProtected", ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsUserProtected
, MonoBoolean
, 1, (const_gunichar2_ptr
))
174 HANDLES(KPAIR_4
, "_ProtectMachine", ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectMachine
, MonoBoolean
, 1, (const_gunichar2_ptr
))
175 HANDLES(KPAIR_5
, "_ProtectUser", ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectUser
, MonoBoolean
, 1, (const_gunichar2_ptr
))
176 #endif /* !PLATFORM_RO_FS */
178 ICALL_TYPE(APPDOM
, "System.AppDomain", APPDOM_23
)
179 HANDLES(APPDOM_23
, "DoUnhandledException", ves_icall_System_AppDomain_DoUnhandledException
, void, 2, (MonoAppDomain
, MonoException
))
180 HANDLES(APPDOM_1
, "ExecuteAssembly", ves_icall_System_AppDomain_ExecuteAssembly
, gint32
, 3, (MonoAppDomain
, MonoReflectionAssembly
, MonoArray
))
181 HANDLES(APPDOM_2
, "GetAssemblies", ves_icall_System_AppDomain_GetAssemblies
, MonoArray
, 2, (MonoAppDomain
, MonoBoolean
))
182 HANDLES(APPDOM_3
, "GetData", ves_icall_System_AppDomain_GetData
, MonoObject
, 2, (MonoAppDomain
, MonoString
))
183 HANDLES(APPDOM_4
, "InternalGetContext", ves_icall_System_AppDomain_InternalGetContext
, MonoAppContext
, 0, ())
184 HANDLES(APPDOM_5
, "InternalGetDefaultContext", ves_icall_System_AppDomain_InternalGetDefaultContext
, MonoAppContext
, 0, ())
185 HANDLES(APPDOM_6
, "InternalGetProcessGuid", ves_icall_System_AppDomain_InternalGetProcessGuid
, MonoString
, 1, (MonoString
))
186 HANDLES(APPDOM_7
, "InternalIsFinalizingForUnload", ves_icall_System_AppDomain_InternalIsFinalizingForUnload
, MonoBoolean
, 1, (gint32
))
187 HANDLES(APPDOM_8
, "InternalPopDomainRef", ves_icall_System_AppDomain_InternalPopDomainRef
, void, 0, ())
188 HANDLES(APPDOM_9
, "InternalPushDomainRef", ves_icall_System_AppDomain_InternalPushDomainRef
, void, 1, (MonoAppDomain
))
189 HANDLES(APPDOM_10
, "InternalPushDomainRefByID", ves_icall_System_AppDomain_InternalPushDomainRefByID
, void, 1, (gint32
))
190 HANDLES(APPDOM_11
, "InternalSetContext", ves_icall_System_AppDomain_InternalSetContext
, MonoAppContext
, 1, (MonoAppContext
))
191 HANDLES(APPDOM_12
, "InternalSetDomain", ves_icall_System_AppDomain_InternalSetDomain
, MonoAppDomain
, 1, (MonoAppDomain
))
192 HANDLES(APPDOM_13
, "InternalSetDomainByID", ves_icall_System_AppDomain_InternalSetDomainByID
, MonoAppDomain
, 1, (gint32
))
193 HANDLES(APPDOM_14
, "InternalUnload", ves_icall_System_AppDomain_InternalUnload
, void, 1, (gint32
))
194 HANDLES(APPDOM_15
, "LoadAssembly", ves_icall_System_AppDomain_LoadAssembly
, MonoReflectionAssembly
, 5, (MonoAppDomain
, MonoString
, MonoObject
, MonoBoolean
, MonoStackCrawlMark_ptr
))
195 HANDLES(APPDOM_16
, "LoadAssemblyRaw", ves_icall_System_AppDomain_LoadAssemblyRaw
, MonoReflectionAssembly
, 5, (MonoAppDomain
, MonoArray
, MonoArray
, MonoObject
, MonoBoolean
))
196 HANDLES(APPDOM_17
, "SetData", ves_icall_System_AppDomain_SetData
, void, 3, (MonoAppDomain
, MonoString
, MonoObject
))
197 HANDLES(APPDOM_18
, "createDomain", ves_icall_System_AppDomain_createDomain
, MonoAppDomain
, 2, (MonoString
, MonoAppDomainSetup
))
198 HANDLES(APPDOM_19
, "getCurDomain", ves_icall_System_AppDomain_getCurDomain
, MonoAppDomain
, 0, ())
199 HANDLES(APPDOM_20
, "getFriendlyName", ves_icall_System_AppDomain_getFriendlyName
, MonoString
, 1, (MonoAppDomain
))
200 HANDLES(APPDOM_21
, "getRootDomain", ves_icall_System_AppDomain_getRootDomain
, MonoAppDomain
, 0, ())
201 HANDLES(APPDOM_22
, "getSetup", ves_icall_System_AppDomain_getSetup
, MonoAppDomainSetup
, 1, (MonoAppDomain
))
203 ICALL_TYPE(ARGI
, "System.ArgIterator", ARGI_1
)
204 NOHANDLES(ICALL(ARGI_1
, "IntGetNextArg", ves_icall_System_ArgIterator_IntGetNextArg
))
205 NOHANDLES(ICALL(ARGI_2
, "IntGetNextArgType", ves_icall_System_ArgIterator_IntGetNextArgType
))
206 NOHANDLES(ICALL(ARGI_3
, "IntGetNextArgWithType", ves_icall_System_ArgIterator_IntGetNextArgWithType
))
207 NOHANDLES(ICALL(ARGI_4
, "Setup", ves_icall_System_ArgIterator_Setup
))
209 ICALL_TYPE(ARRAY
, "System.Array", ARRAY_1
)
210 HANDLES(ARRAY_1
, "ClearInternal", ves_icall_System_Array_ClearInternal
, void, 3, (MonoArray
, int, int))
211 HANDLES(ARRAY_3
, "CreateInstanceImpl", ves_icall_System_Array_CreateInstanceImpl
, MonoArray
, 3, (MonoReflectionType
, MonoArray
, MonoArray
))
212 HANDLES(ARRAY_4
, "FastCopy", ves_icall_System_Array_FastCopy
, MonoBoolean
, 5, (MonoArray
, int, MonoArray
, int, int))
213 // Generic ref/out parameters are not supported by HANDLES(), so NOHANDLES().
214 // FIXME HANDLES should handle this trivially. Do it separately.
215 NOHANDLES(ICALL(ARRAY_5
, "GetGenericValueImpl", ves_icall_System_Array_GetGenericValueImpl
))
216 HANDLES(ARRAY_6
, "GetLength", ves_icall_System_Array_GetLength
, gint32
, 2, (MonoArray
, gint32
))
217 HANDLES(ARRAY_15
, "GetLongLength", ves_icall_System_Array_GetLongLength
, gint64
, 2, (MonoArray
, gint32
))
218 HANDLES(ARRAY_7
, "GetLowerBound", ves_icall_System_Array_GetLowerBound
, gint32
, 2, (MonoArray
, gint32
))
219 HANDLES(ARRAY_8
, "GetRank", ves_icall_System_Array_GetRank
, gint32
, 1, (MonoObject
))
220 HANDLES(ARRAY_9
, "GetValue", ves_icall_System_Array_GetValue
, MonoObject
, 2, (MonoArray
, MonoArray
))
221 HANDLES(ARRAY_10
, "GetValueImpl", ves_icall_System_Array_GetValueImpl
, MonoObject
, 2, (MonoArray
, guint32
))
222 // Generic ref/out parameters are not supported by HANDLES(), so NOHANDLES().
223 // FIXME HANDLES should handle this trivially. Do it separately.
224 NOHANDLES(ICALL(ARRAY_11
, "SetGenericValueImpl", ves_icall_System_Array_SetGenericValueImpl
))
225 HANDLES(ARRAY_12
, "SetValue", ves_icall_System_Array_SetValue
, void, 3, (MonoArray
, MonoObject
, MonoArray
))
226 HANDLES(ARRAY_13
, "SetValueImpl", ves_icall_System_Array_SetValueImpl
, void, 3, (MonoArray
, MonoObject
, guint32
))
228 ICALL_TYPE(BUFFER
, "System.Buffer", BUFFER_1
)
229 HANDLES(BUFFER_1
, "InternalBlockCopy", ves_icall_System_Buffer_BlockCopyInternal
, MonoBoolean
, 5, (MonoArray
, gint32
, MonoArray
, gint32
, gint32
))
230 NOHANDLES(ICALL(BUFFER_5
, "InternalMemcpy", ves_icall_System_Buffer_MemcpyInternal
))
231 HANDLES(BUFFER_2
, "_ByteLength", ves_icall_System_Buffer_ByteLengthInternal
, gint32
, 1, (MonoArray
))
233 ICALL_TYPE(CLRCONFIG
, "System.CLRConfig", CLRCONFIG_1
)
234 HANDLES(CLRCONFIG_1
, "CheckThrowUnobservedTaskExceptions", ves_icall_System_CLRConfig_CheckThrowUnobservedTaskExceptions
, MonoBoolean
, 0, ())
236 ICALL_TYPE(DEFAULTC
, "System.Configuration.DefaultConfig", DEFAULTC_1
)
237 HANDLES(DEFAULTC_1
, "get_bundled_machine_config", ves_icall_System_Configuration_DefaultConfig_get_bundled_machine_config
, MonoString
, 0, ())
238 HANDLES(DEFAULTC_2
, "get_machine_config_path", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path
, MonoString
, 0, ())
240 /* Note that the below icall shares the same function as DefaultConfig uses */
241 ICALL_TYPE(INTCFGHOST
, "System.Configuration.InternalConfigurationHost", INTCFGHOST_1
)
242 HANDLES(INTCFGHOST_1
, "get_bundled_app_config", ves_icall_System_Configuration_InternalConfigurationHost_get_bundled_app_config
, MonoString
, 0, ())
243 HANDLES(INTCFGHOST_2
, "get_bundled_machine_config", ves_icall_System_Configuration_InternalConfigurationHost_get_bundled_machine_config
, MonoString
, 0, ())
245 ICALL_TYPE(CONSOLE
, "System.ConsoleDriver", CONSOLE_1
)
246 HANDLES(CONSOLE_1
, "InternalKeyAvailable", ves_icall_System_ConsoleDriver_InternalKeyAvailable
, gint32
, 1, (gint32
))
247 HANDLES(CONSOLE_2
, "Isatty", ves_icall_System_ConsoleDriver_Isatty
, MonoBoolean
, 1, (gpointer
/*HANDLE*/))
248 HANDLES(CONSOLE_3
, "SetBreak", ves_icall_System_ConsoleDriver_SetBreak
, MonoBoolean
, 1, (MonoBoolean
))
249 HANDLES(CONSOLE_4
, "SetEcho", ves_icall_System_ConsoleDriver_SetEcho
, MonoBoolean
, 1, (MonoBoolean
))
250 HANDLES(CONSOLE_5
, "TtySetup", ves_icall_System_ConsoleDriver_TtySetup
, MonoBoolean
, 4, (MonoString
, MonoString
, MonoArrayOut
, int_ptr_ref
))
252 ICALL_TYPE(DTIME
, "System.DateTime", DTIME_1
)
253 NOHANDLES(ICALL(DTIME_1
, "GetSystemTimeAsFileTime", ves_icall_System_DateTime_GetSystemTimeAsFileTime
))
255 ICALL_TYPE(DELEGATE
, "System.Delegate", DELEGATE_1
)
256 HANDLES(DELEGATE_1
, "AllocDelegateLike_internal", ves_icall_System_Delegate_AllocDelegateLike_internal
, MonoMulticastDelegate
, 1, (MonoDelegate
))
257 HANDLES(DELEGATE_2
, "CreateDelegate_internal", ves_icall_System_Delegate_CreateDelegate_internal
, MonoObject
, 4, (MonoReflectionType
, MonoObject
, MonoReflectionMethod
, MonoBoolean
))
258 HANDLES(DELEGATE_3
, "GetVirtualMethod_internal", ves_icall_System_Delegate_GetVirtualMethod_internal
, MonoReflectionMethod
, 1, (MonoDelegate
))
260 ICALL_TYPE(DEBUGR
, "System.Diagnostics.Debugger", DEBUGR_1
)
261 HANDLES(DEBUGR_1
, "IsAttached_internal", ves_icall_System_Diagnostics_Debugger_IsAttached_internal
, MonoBoolean
, 0, ())
262 HANDLES(DEBUGR_2
, "IsLogging", ves_icall_System_Diagnostics_Debugger_IsLogging
, MonoBoolean
, 0, ())
263 HANDLES(DEBUGR_3
, "Log", ves_icall_System_Diagnostics_Debugger_Log
, void, 3, (int, MonoString
, MonoString
))
265 ICALL_TYPE(TRACEL
, "System.Diagnostics.DefaultTraceListener", TRACEL_1
)
266 HANDLES(TRACEL_1
, "WriteWindowsDebugString", ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString
, void, 1, (const_gunichar2_ptr
))
268 ICALL_TYPE(FILEV
, "System.Diagnostics.FileVersionInfo", FILEV_1
)
269 HANDLES(FILEV_1
, "GetVersionInfo_icall", ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal
, void, 3, (MonoObject
, const_gunichar2_ptr
, int))
271 ICALL_TYPE(PERFCTR
, "System.Diagnostics.PerformanceCounter", PERFCTR_1
)
272 NOHANDLES(ICALL(PERFCTR_1
, "FreeData", mono_perfcounter_free_data
))
273 HANDLES(PERFCTR_2
, "GetImpl_icall", mono_perfcounter_get_impl
, gpointer
, 8,
274 (const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
, gint32_ref
, MonoBoolean_ref
))
275 NOHANDLES(ICALL(PERFCTR_3
, "GetSample", mono_perfcounter_get_sample
))
276 NOHANDLES(ICALL(PERFCTR_4
, "UpdateValue", mono_perfcounter_update_value
))
278 ICALL_TYPE(PERFCTRCAT
, "System.Diagnostics.PerformanceCounterCategory", PERFCTRCAT_1
)
279 HANDLES(PERFCTRCAT_1
, "CategoryDelete_icall", mono_perfcounter_category_del
, MonoBoolean
, 2, (const_gunichar2_ptr
, gint32
))
280 HANDLES(PERFCTRCAT_2
, "CategoryHelpInternal_icall", mono_perfcounter_category_help
, MonoString
, 2, (const_gunichar2_ptr
, gint32
))
281 HANDLES(PERFCTRCAT_3
, "CounterCategoryExists_icall", mono_perfcounter_category_exists
, MonoBoolean
, 4, (const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
))
282 HANDLES(PERFCTRCAT_4
, "Create_icall", mono_perfcounter_create
, MonoBoolean
, 6, (const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
, gint32
, MonoArray
))
283 HANDLES(PERFCTRCAT_5
, "GetCategoryNames", mono_perfcounter_category_names
, MonoArray
, 0, ())
284 HANDLES(PERFCTRCAT_6
, "GetCounterNames_icall", mono_perfcounter_counter_names
, MonoArray
, 2, (const_gunichar2_ptr
, gint32
))
285 HANDLES(PERFCTRCAT_7
, "GetInstanceNames_icall", mono_perfcounter_instance_names
, MonoArray
, 2, (const_gunichar2_ptr
, gint32
))
286 HANDLES(PERFCTRCAT_8
, "InstanceExistsInternal_icall", mono_perfcounter_instance_exists
, MonoBoolean
, 4, (const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
))
288 ICALL_TYPE(PROCESS
, "System.Diagnostics.Process", PROCESS_1
)
289 HANDLES(PROCESS_1
, "CreateProcess_internal", ves_icall_System_Diagnostics_Process_CreateProcess_internal
,
290 MonoBoolean
, 5, (MonoW32ProcessStartInfo
, gpointer
, gpointer
, gpointer
, MonoW32ProcessInfo_ref
))
291 HANDLES(PROCESS_4
, "GetModules_icall", ves_icall_System_Diagnostics_Process_GetModules_internal
, MonoArray
, 2, (MonoObject
, PROCESS_HANDLE
))
292 NOHANDLES(ICALL(PROCESS_5H
, "GetProcessData", ves_icall_System_Diagnostics_Process_GetProcessData
))
293 HANDLES(PROCESS_6
, "GetProcess_internal", ves_icall_System_Diagnostics_Process_GetProcess_internal
, gpointer
, 1, (guint32
))
294 HANDLES(PROCESS_7
, "GetProcesses_internal", ves_icall_System_Diagnostics_Process_GetProcesses_internal
, MonoArray
, 0, ())
295 HANDLES(PROCESS_10
, "ProcessName_icall", ves_icall_System_Diagnostics_Process_ProcessName_internal
, MonoString
, 1, (PROCESS_HANDLE
))
296 HANDLES(PROCESS_13
, "ShellExecuteEx_internal", ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal
, MonoBoolean
, 2, (MonoW32ProcessStartInfo
, MonoW32ProcessInfo_ref
))
298 ICALL_TYPE(STOPWATCH
, "System.Diagnostics.Stopwatch", STOPWATCH_1
)
299 NOHANDLES(ICALL(STOPWATCH_1
, "GetTimestamp", ves_icall_System_Diagnostics_Stopwatch_GetTimestamp
))
301 ICALL_TYPE(ENUM
, "System.Enum", ENUM_1
)
302 HANDLES(ENUM_1
, "GetEnumValuesAndNames", ves_icall_System_Enum_GetEnumValuesAndNames
, MonoBoolean
, 3, (MonoReflectionType
, MonoArrayOut
, MonoArrayOut
))
303 HANDLES(ENUM_2
, "InternalBoxEnum", ves_icall_System_Enum_ToObject
, MonoObject
, 2, (MonoReflectionType
, guint64
))
304 HANDLES(ENUM_3
, "InternalCompareTo", ves_icall_System_Enum_compare_value_to
, int, 2, (MonoObject
, MonoObject
))
305 HANDLES(ENUM_3a
, "InternalGetCorElementType", ves_icall_System_Enum_InternalGetCorElementType
, int, 1, (MonoObject
))
306 HANDLES(ENUM_4
, "InternalGetUnderlyingType", ves_icall_System_Enum_get_underlying_type
, MonoReflectionType
, 1, (MonoReflectionType
))
307 HANDLES(ENUM_5
, "InternalHasFlag", ves_icall_System_Enum_InternalHasFlag
, MonoBoolean
, 2, (MonoObject
, MonoObject
))
308 HANDLES(ENUM_6
, "get_hashcode", ves_icall_System_Enum_get_hashcode
, int, 1, (MonoObject
))
309 HANDLES(ENUM_7
, "get_value", ves_icall_System_Enum_get_value
, MonoObject
, 1, (MonoObject
))
311 ICALL_TYPE(ENV
, "System.Environment", ENV_1
)
312 NOHANDLES(ICALL(ENV_1
, "Exit", ves_icall_System_Environment_Exit
))
313 HANDLES(ENV_1a
, "FailFast", ves_icall_System_Environment_FailFast
, void, 3, (MonoString
, MonoException
, MonoString
))
314 HANDLES(ENV_2
, "GetCommandLineArgs", ves_icall_System_Environment_GetCommandLineArgs
, MonoArray
, 0, ())
315 HANDLES(ENV_3
, "GetEnvironmentVariableNames", ves_icall_System_Environment_GetEnvironmentVariableNames
, MonoArray
, 0, ())
316 NOHANDLES(ICALL(ENV_31
, "GetIs64BitOperatingSystem", ves_icall_System_Environment_GetIs64BitOperatingSystem
))
317 HANDLES(ENV_4
, "GetLogicalDrivesInternal", ves_icall_System_Environment_GetLogicalDrivesInternal
, MonoArray
, 0, ())
318 HANDLES_REUSE_WRAPPER(ENV_5
, "GetMachineConfigPath", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path
, MonoString
, 0, ())
319 HANDLES(ENV_51
, "GetNewLine", ves_icall_System_Environment_get_NewLine
, MonoString
, 0, ())
320 HANDLES(ENV_6
, "GetOSVersionString", ves_icall_System_Environment_GetOSVersionString
, MonoString
, 0, ())
321 NOHANDLES(ICALL(ENV_6a
, "GetPageSize", mono_pagesize
))
322 HANDLES(ENV_7
, "GetWindowsFolderPath", ves_icall_System_Environment_GetWindowsFolderPath
, MonoString
, 1, (int))
323 HANDLES(ENV_8
, "InternalSetEnvironmentVariable", ves_icall_System_Environment_InternalSetEnvironmentVariable
, void, 4, (const_gunichar2_ptr
, gint32
, const_gunichar2_ptr
, gint32
))
324 NOHANDLES(ICALL(ENV_9
, "get_ExitCode", mono_environment_exitcode_get
))
325 NOHANDLES(ICALL(ENV_10
, "get_HasShutdownStarted", ves_icall_System_Environment_get_HasShutdownStarted
))
326 HANDLES(ENV_11
, "get_MachineName", ves_icall_System_Environment_get_MachineName
, MonoString
, 0, ())
327 NOHANDLES(ICALL(ENV_13
, "get_Platform", ves_icall_System_Environment_get_Platform
))
328 NOHANDLES(ICALL(ENV_14
, "get_ProcessorCount", ves_icall_System_Environment_get_ProcessorCount
))
329 NOHANDLES(ICALL(ENV_15
, "get_TickCount", ves_icall_System_Environment_get_TickCount
))
330 HANDLES(ENV_16
, "get_UserName", ves_icall_System_Environment_get_UserName
, MonoString
, 0, ())
331 HANDLES(ENV_16b
, "get_bundled_machine_config", ves_icall_System_Environment_get_bundled_machine_config
, MonoString
, 0, ())
332 HANDLES(ENV_16m
, "internalBroadcastSettingChange", ves_icall_System_Environment_BroadcastSettingChange
, void, 0, ())
333 HANDLES(ENV_17
, "internalGetEnvironmentVariable_native", ves_icall_System_Environment_GetEnvironmentVariable_native
, MonoString
, 1, (const_char_ptr
))
334 HANDLES(ENV_18
, "internalGetGacPath", ves_icall_System_Environment_GetGacPath
, MonoString
, 0, ())
335 HANDLES(ENV_19
, "internalGetHome", ves_icall_System_Environment_InternalGetHome
, MonoString
, 0, ())
336 NOHANDLES(ICALL(ENV_20
, "set_ExitCode", mono_environment_exitcode_set
))
337 ICALL_TYPE(GC
, "System.GC", GC_10
)
338 NOHANDLES(ICALL(GC_10
, "GetAllocatedBytesForCurrentThread", ves_icall_System_GC_GetAllocatedBytesForCurrentThread
))
339 NOHANDLES(ICALL(GC_0
, "GetCollectionCount", ves_icall_System_GC_GetCollectionCount
))
340 HANDLES(GC_0a
, "GetGeneration", ves_icall_System_GC_GetGeneration
, int, 1, (MonoObject
))
341 NOHANDLES(ICALL(GC_0b
, "GetMaxGeneration", ves_icall_System_GC_GetMaxGeneration
))
342 NOHANDLES(ICALL(GC_1
, "GetTotalMemory", ves_icall_System_GC_GetTotalMemory
))
343 NOHANDLES(ICALL(GC_2
, "InternalCollect", ves_icall_System_GC_InternalCollect
))
344 HANDLES(GC_3
, "KeepAlive", ves_icall_System_GC_KeepAlive
, void, 1, (MonoObject
))
345 NOHANDLES(ICALL(GC_4a
, "RecordPressure", ves_icall_System_GC_RecordPressure
))
346 NOHANDLES(ICALL(GC_6
, "WaitForPendingFinalizers", ves_icall_System_GC_WaitForPendingFinalizers
))
347 HANDLES(GC_6b
, "_ReRegisterForFinalize", ves_icall_System_GC_ReRegisterForFinalize
, void, 1, (MonoObject
))
348 HANDLES(GC_7
, "_SuppressFinalize", ves_icall_System_GC_SuppressFinalize
, void, 1, (MonoObject
))
349 HANDLES(GC_9
, "get_ephemeron_tombstone", ves_icall_System_GC_get_ephemeron_tombstone
, MonoObject
, 0, ())
350 HANDLES(GC_8
, "register_ephemeron_array", ves_icall_System_GC_register_ephemeron_array
, void, 1, (MonoObject
))
352 ICALL_TYPE(CALDATA
, "System.Globalization.CalendarData", CALDATA_1
)
353 HANDLES(CALDATA_1
, "fill_calendar_data", ves_icall_System_Globalization_CalendarData_fill_calendar_data
, MonoBoolean
, 3, (MonoCalendarData
, MonoString
, gint32
))
355 ICALL_TYPE(COMPINF
, "System.Globalization.CompareInfo", COMPINF_4
)
356 NOHANDLES(ICALL(COMPINF_4
, "internal_compare_icall", ves_icall_System_Globalization_CompareInfo_internal_compare
))
357 NOHANDLES(ICALL(COMPINF_6
, "internal_index_icall", ves_icall_System_Globalization_CompareInfo_internal_index
))
359 ICALL_TYPE(CULDATA
, "System.Globalization.CultureData", CULDATA_1
)
360 HANDLES(CULDATA_1
, "fill_culture_data", ves_icall_System_Globalization_CultureData_fill_culture_data
, void, 2, (MonoCultureData
, gint32
))
361 NOHANDLES(ICALL(CULDATA_2
, "fill_number_data", ves_icall_System_Globalization_CultureData_fill_number_data
))
363 ICALL_TYPE(CULINF
, "System.Globalization.CultureInfo", CULINF_5
)
364 HANDLES(CULINF_5
, "construct_internal_locale_from_lcid", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_lcid
, MonoBoolean
, 2, (MonoCultureInfo
, gint32
))
365 HANDLES(CULINF_6
, "construct_internal_locale_from_name", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_name
, MonoBoolean
, 2, (MonoCultureInfo
, MonoString
))
366 HANDLES(CULINF_7
, "get_current_locale_name", ves_icall_System_Globalization_CultureInfo_get_current_locale_name
, MonoString
, 0, ())
367 HANDLES(CULINF_9
, "internal_get_cultures", ves_icall_System_Globalization_CultureInfo_internal_get_cultures
, MonoArray
, 3, (MonoBoolean
, MonoBoolean
, MonoBoolean
))
369 ICALL_TYPE(REGINF
, "System.Globalization.RegionInfo", REGINF_2
)
370 HANDLES(REGINF_2
, "construct_internal_region_from_name", ves_icall_System_Globalization_RegionInfo_construct_internal_region_from_name
, MonoBoolean
, 2, (MonoRegionInfo
, MonoString
))
372 #if defined(ENABLE_MONODROID) || defined(ENABLE_MONOTOUCH) || defined(TARGET_WASM)
373 ICALL_TYPE(DEFLATESTREAM
, "System.IO.Compression.DeflateStreamNative", DEFLATESTREAM_1
)
374 NOHANDLES(ICALL(DEFLATESTREAM_1
, "CloseZStream", ves_icall_System_IO_Compression_DeflateStreamNative_CloseZStream
))
375 NOHANDLES(ICALL(DEFLATESTREAM_2
, "CreateZStream", ves_icall_System_IO_Compression_DeflateStreamNative_CreateZStream
))
376 NOHANDLES(ICALL(DEFLATESTREAM_3
, "Flush", ves_icall_System_IO_Compression_DeflateStreamNative_Flush
))
377 NOHANDLES(ICALL(DEFLATESTREAM_4
, "ReadZStream", ves_icall_System_IO_Compression_DeflateStreamNative_ReadZStream
))
378 NOHANDLES(ICALL(DEFLATESTREAM_5
, "WriteZStream", ves_icall_System_IO_Compression_DeflateStreamNative_WriteZStream
))
381 #ifndef PLATFORM_NO_DRIVEINFO
382 ICALL_TYPE(IODRIVEINFO
, "System.IO.DriveInfo", IODRIVEINFO_1
)
383 NOHANDLES(ICALL(IODRIVEINFO_1
, "GetDiskFreeSpaceInternal", ves_icall_System_IO_DriveInfo_GetDiskFreeSpace
))
384 HANDLES(IODRIVEINFO_2
, "GetDriveFormatInternal", ves_icall_System_IO_DriveInfo_GetDriveFormat
, MonoString
, 2, (const_gunichar2_ptr
, int))
385 HANDLES(IODRIVEINFO_3
, "GetDriveTypeInternal", ves_icall_System_IO_DriveInfo_GetDriveType
, guint32
, 2, (const_gunichar2_ptr
, int))
388 ICALL_TYPE(FAMW
, "System.IO.FAMWatcher", FAMW_1
)
389 HANDLES(FAMW_1
, "InternalFAMNextEvent", ves_icall_System_IO_FAMW_InternalFAMNextEvent
, int, 4, (gpointer
, MonoStringOut
, int_ref
, int_ref
))
391 ICALL_TYPE(FILEW
, "System.IO.FileSystemWatcher", FILEW_4
)
392 NOHANDLES(ICALL(FILEW_4
, "InternalSupportsFSW", ves_icall_System_IO_FSW_SupportsFSW
))
394 ICALL_TYPE(KQUEM
, "System.IO.KqueueMonitor", KQUEM_1
)
395 NOHANDLES(ICALL(KQUEM_1
, "kevent_notimeout", ves_icall_System_IO_KqueueMonitor_kevent_notimeout
))
397 ICALL_TYPE(LOGCATEXTWRITER
, "System.IO.LogcatTextWriter", LOGCATEXTWRITER_1
)
398 NOHANDLES(ICALL(LOGCATEXTWRITER_1
, "Log", ves_icall_System_IO_LogcatTextWriter_Log
))
400 ICALL_TYPE(MMAPIMPL
, "System.IO.MemoryMappedFiles.MemoryMapImpl", MMAPIMPL_1
)
401 // FIXME rename to ves_icall...
402 HANDLES(MMAPIMPL_1
, "CloseMapping", mono_mmap_close
, void, 1, (gpointer
))
403 HANDLES(MMAPIMPL_2
, "ConfigureHandleInheritability", mono_mmap_configure_inheritability
, void, 2, (gpointer
, gint32
))
404 HANDLES(MMAPIMPL_3
, "Flush", mono_mmap_flush
, void, 1, (gpointer
))
405 HANDLES(MMAPIMPL_4
, "MapInternal", mono_mmap_map
, int, 6, (gpointer
, gint64
, gint64_ref
, int, gpointer_ref
, gpointer_ref
))
406 HANDLES(MMAPIMPL_5
, "OpenFileInternal", mono_mmap_open_file
, gpointer
, 9, (const_gunichar2_ptr
, int, int, const_gunichar2_ptr
, int, gint64_ref
, int, int, int_ref
))
407 HANDLES(MMAPIMPL_6
, "OpenHandleInternal", mono_mmap_open_handle
, gpointer
, 7, (gpointer
, const_gunichar2_ptr
, int, gint64_ref
, int, int, int_ref
))
408 HANDLES(MMAPIMPL_7
, "Unmap", mono_mmap_unmap
, MonoBoolean
, 1, (gpointer
))
410 ICALL_TYPE(MONOIO
, "System.IO.MonoIO", MONOIO_39
)
411 NOHANDLES(ICALL(MONOIO_39
, "Cancel_internal", ves_icall_System_IO_MonoIO_Cancel
))
412 NOHANDLES(ICALL(MONOIO_1
, "Close(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Close
))
413 #ifndef PLATFORM_RO_FS
414 NOHANDLES(ICALL(MONOIO_2
, "CopyFile(char*,char*,bool,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_CopyFile
))
415 NOHANDLES(ICALL(MONOIO_3
, "CreateDirectory(char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_CreateDirectory
))
416 NOHANDLES(ICALL(MONOIO_4
, "CreatePipe", ves_icall_System_IO_MonoIO_CreatePipe
))
417 NOHANDLES(ICALL(MONOIO_5
, "DeleteFile(char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_DeleteFile
))
418 #endif /* !PLATFORM_RO_FS */
419 NOHANDLES(ICALL(MONOIO_38
, "DumpHandles", ves_icall_System_IO_MonoIO_DumpHandles
))
420 NOHANDLES(ICALL(MONOIO_34
, "DuplicateHandle", ves_icall_System_IO_MonoIO_DuplicateHandle
))
421 NOHANDLES(ICALL(MONOIO_37a
, "FindCloseFile", ves_icall_System_IO_MonoIO_FindCloseFile
))
422 HANDLES(MONOIO_35a
, "FindFirstFile", ves_icall_System_IO_MonoIO_FindFirstFile
, gpointer
, 4, (const_gunichar2_ptr
, MonoStringOut
, gint32_ref
, gint32_ref
))
423 HANDLES(MONOIO_36a
, "FindNextFile", ves_icall_System_IO_MonoIO_FindNextFile
, MonoBoolean
, 4, (gpointer
, MonoStringOut
, gint32_ref
, gint32_ref
))
424 NOHANDLES(ICALL(MONOIO_6
, "Flush(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Flush
))
425 HANDLES(MONOIO_7
, "GetCurrentDirectory(System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetCurrentDirectory
, MonoString
, 1, (gint32_ref
))
426 NOHANDLES(ICALL(MONOIO_8
, "GetFileAttributes(char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileAttributes
))
427 NOHANDLES(ICALL(MONOIO_9
, "GetFileStat(char*,System.IO.MonoIOStat&,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileStat
))
428 NOHANDLES(ICALL(MONOIO_11
, "GetFileType(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileType
))
429 NOHANDLES(ICALL(MONOIO_12
, "GetLength(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetLength
))
430 #ifndef PLATFORM_RO_FS
431 NOHANDLES(ICALL(MONOIO_14
, "Lock(intptr,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Lock
))
432 NOHANDLES(ICALL(MONOIO_15
, "MoveFile(char*,char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_MoveFile
))
433 #endif /* !PLATFORM_RO_FS */
434 NOHANDLES(ICALL(MONOIO_16
, "Open(char*,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.IO.FileOptions,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Open
))
435 HANDLES(MONOIO_17
, "Read(intptr,byte[],int,int,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Read
, gint32
, 5, (gpointer
, MonoArray
, gint32
, gint32
, gint32_ref
))
436 #ifndef PLATFORM_RO_FS
437 NOHANDLES(ICALL(MONOIO_18
, "RemoveDirectory(char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_RemoveDirectory
))
438 NOHANDLES(ICALL(MONOIO_18M
, "ReplaceFile(char*,char*,char*,bool,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_ReplaceFile
))
439 #endif /* !PLATFORM_RO_FS */
440 NOHANDLES(ICALL(MONOIO_19
, "Seek(intptr,long,System.IO.SeekOrigin,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Seek
))
441 NOHANDLES(ICALL(MONOIO_20
, "SetCurrentDirectory(char*,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetCurrentDirectory
))
442 NOHANDLES(ICALL(MONOIO_21
, "SetFileAttributes(char*,System.IO.FileAttributes,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetFileAttributes
))
443 NOHANDLES(ICALL(MONOIO_22
, "SetFileTime(intptr,long,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetFileTime
))
444 NOHANDLES(ICALL(MONOIO_23
, "SetLength(intptr,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetLength
))
445 #ifndef PLATFORM_RO_FS
446 NOHANDLES(ICALL(MONOIO_24
, "Unlock(intptr,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Unlock
))
448 HANDLES(MONOIO_25
, "Write(intptr,byte[],int,int,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Write
, gint32
, 5, (gpointer
, MonoArray
, gint32
, gint32
, gint32_ref
))
449 NOHANDLES(ICALL(MONOIO_26
, "get_AltDirectorySeparatorChar", ves_icall_System_IO_MonoIO_get_AltDirectorySeparatorChar
))
450 NOHANDLES(ICALL(MONOIO_27
, "get_ConsoleError", ves_icall_System_IO_MonoIO_get_ConsoleError
))
451 NOHANDLES(ICALL(MONOIO_28
, "get_ConsoleInput", ves_icall_System_IO_MonoIO_get_ConsoleInput
))
452 NOHANDLES(ICALL(MONOIO_29
, "get_ConsoleOutput", ves_icall_System_IO_MonoIO_get_ConsoleOutput
))
453 NOHANDLES(ICALL(MONOIO_30
, "get_DirectorySeparatorChar", ves_icall_System_IO_MonoIO_get_DirectorySeparatorChar
))
454 HANDLES(MONOIO_31
, "get_InvalidPathChars", ves_icall_System_IO_MonoIO_get_InvalidPathChars
, MonoArray
, 0, ())
455 NOHANDLES(ICALL(MONOIO_32
, "get_PathSeparator", ves_icall_System_IO_MonoIO_get_PathSeparator
))
456 NOHANDLES(ICALL(MONOIO_33
, "get_VolumeSeparatorChar", ves_icall_System_IO_MonoIO_get_VolumeSeparatorChar
))
458 ICALL_TYPE(IOPATH
, "System.IO.Path", IOPATH_1
)
459 HANDLES(IOPATH_1
, "get_temp_path", ves_icall_System_IO_get_temp_path
, MonoString
, 0, ())
461 ICALL_TYPE(IOSELECTOR
, "System.IOSelector", IOSELECTOR_1
)
462 HANDLES(IOSELECTOR_1
, "Add", ves_icall_System_IOSelector_Add
, void, 2, (gpointer
, MonoIOSelectorJob
))
463 NOHANDLES(ICALL(IOSELECTOR_2
, "Remove", ves_icall_System_IOSelector_Remove
))
465 ICALL_TYPE(MATH
, "System.Math", MATH_19
)
466 NOHANDLES(ICALL(MATH_19
, "Abs(double)", ves_icall_System_Math_Abs_double
))
467 NOHANDLES(ICALL(MATH_20
, "Abs(single)", ves_icall_System_Math_Abs_single
))
468 NOHANDLES(ICALL(MATH_1
, "Acos", ves_icall_System_Math_Acos
))
469 NOHANDLES(ICALL(MATH_1a
, "Acosh", ves_icall_System_Math_Acosh
))
470 NOHANDLES(ICALL(MATH_2
, "Asin", ves_icall_System_Math_Asin
))
471 NOHANDLES(ICALL(MATH_2a
, "Asinh", ves_icall_System_Math_Asinh
))
472 NOHANDLES(ICALL(MATH_3
, "Atan", ves_icall_System_Math_Atan
))
473 NOHANDLES(ICALL(MATH_4
, "Atan2", ves_icall_System_Math_Atan2
))
474 NOHANDLES(ICALL(MATH_4a
, "Atanh", ves_icall_System_Math_Atanh
))
475 NOHANDLES(ICALL(MATH_4b
, "Cbrt", ves_icall_System_Math_Cbrt
))
476 NOHANDLES(ICALL(MATH_21
, "Ceiling", ves_icall_System_Math_Ceiling
))
477 NOHANDLES(ICALL(MATH_5
, "Cos", ves_icall_System_Math_Cos
))
478 NOHANDLES(ICALL(MATH_6
, "Cosh", ves_icall_System_Math_Cosh
))
479 NOHANDLES(ICALL(MATH_7
, "Exp", ves_icall_System_Math_Exp
))
480 NOHANDLES(ICALL(MATH_7a
, "FMod", ves_icall_System_Math_FMod
))
481 NOHANDLES(ICALL(MATH_8
, "Floor", ves_icall_System_Math_Floor
))
482 NOHANDLES(ICALL(MATH_9
, "Log", ves_icall_System_Math_Log
))
483 NOHANDLES(ICALL(MATH_10
, "Log10", ves_icall_System_Math_Log10
))
484 NOHANDLES(ICALL(MATH_10a
, "ModF", ves_icall_System_Math_ModF
))
485 NOHANDLES(ICALL(MATH_11
, "Pow", ves_icall_System_Math_Pow
))
486 NOHANDLES(ICALL(MATH_12
, "Round", ves_icall_System_Math_Round
))
487 NOHANDLES(ICALL(MATH_14
, "Sin", ves_icall_System_Math_Sin
))
488 NOHANDLES(ICALL(MATH_15
, "Sinh", ves_icall_System_Math_Sinh
))
489 NOHANDLES(ICALL(MATH_16
, "Sqrt", ves_icall_System_Math_Sqrt
))
490 NOHANDLES(ICALL(MATH_17
, "Tan", ves_icall_System_Math_Tan
))
491 NOHANDLES(ICALL(MATH_18
, "Tanh", ves_icall_System_Math_Tanh
))
493 ICALL_TYPE(MATHF
, "System.MathF", MATHF_1
)
494 NOHANDLES(ICALL(MATHF_1
, "Acos", ves_icall_System_MathF_Acos
))
495 NOHANDLES(ICALL(MATHF_2
, "Acosh", ves_icall_System_MathF_Acosh
))
496 NOHANDLES(ICALL(MATHF_3
, "Asin", ves_icall_System_MathF_Asin
))
497 NOHANDLES(ICALL(MATHF_4
, "Asinh", ves_icall_System_MathF_Asinh
))
498 NOHANDLES(ICALL(MATHF_5
, "Atan", ves_icall_System_MathF_Atan
))
499 NOHANDLES(ICALL(MATHF_6
, "Atan2", ves_icall_System_MathF_Atan2
))
500 NOHANDLES(ICALL(MATHF_7
, "Atanh", ves_icall_System_MathF_Atanh
))
501 NOHANDLES(ICALL(MATHF_8
, "Cbrt", ves_icall_System_MathF_Cbrt
))
502 NOHANDLES(ICALL(MATHF_9
, "Ceiling", ves_icall_System_MathF_Ceiling
))
503 NOHANDLES(ICALL(MATHF_10
, "Cos", ves_icall_System_MathF_Cos
))
504 NOHANDLES(ICALL(MATHF_11
, "Cosh", ves_icall_System_MathF_Cosh
))
505 NOHANDLES(ICALL(MATHF_12
, "Exp", ves_icall_System_MathF_Exp
))
506 NOHANDLES(ICALL(MATHF_22
, "FMod", ves_icall_System_MathF_FMod
))
507 NOHANDLES(ICALL(MATHF_13
, "Floor", ves_icall_System_MathF_Floor
))
508 NOHANDLES(ICALL(MATHF_14
, "Log", ves_icall_System_MathF_Log
))
509 NOHANDLES(ICALL(MATHF_15
, "Log10", ves_icall_System_MathF_Log10
))
510 NOHANDLES(ICALL(MATHF_23
, "ModF(single,single*)", ves_icall_System_MathF_ModF
))
511 NOHANDLES(ICALL(MATHF_16
, "Pow", ves_icall_System_MathF_Pow
))
512 NOHANDLES(ICALL(MATHF_17
, "Sin", ves_icall_System_MathF_Sin
))
513 NOHANDLES(ICALL(MATHF_18
, "Sinh", ves_icall_System_MathF_Sinh
))
514 NOHANDLES(ICALL(MATHF_19
, "Sqrt", ves_icall_System_MathF_Sqrt
))
515 NOHANDLES(ICALL(MATHF_20
, "Tan", ves_icall_System_MathF_Tan
))
516 NOHANDLES(ICALL(MATHF_21
, "Tanh", ves_icall_System_MathF_Tanh
))
518 ICALL_TYPE(MCATTR
, "System.MonoCustomAttrs", MCATTR_1
)
519 HANDLES(MCATTR_1
, "GetCustomAttributesDataInternal", ves_icall_MonoCustomAttrs_GetCustomAttributesDataInternal
, MonoArray
, 1, (MonoObject
))
520 HANDLES(MCATTR_2
, "GetCustomAttributesInternal", ves_icall_MonoCustomAttrs_GetCustomAttributesInternal
, MonoArray
, 3, (MonoObject
, MonoReflectionType
, MonoBoolean
))
521 HANDLES(MCATTR_3
, "IsDefinedInternal", ves_icall_MonoCustomAttrs_IsDefinedInternal
, MonoBoolean
, 2, (MonoObject
, MonoReflectionType
))
523 #ifndef DISABLE_SOCKETS
524 ICALL_TYPE(NDNS
, "System.Net.Dns", NDNS_1
)
525 HANDLES(NDNS_1
, "GetHostByAddr_internal(string,string&,string[]&,string[]&,int)", ves_icall_System_Net_Dns_GetHostByAddr_internal
, MonoBoolean
, 5, (MonoString
, MonoStringOut
, MonoArrayOut
, MonoArrayOut
, gint32
))
526 HANDLES(NDNS_2
, "GetHostByName_internal(string,string&,string[]&,string[]&,int)", ves_icall_System_Net_Dns_GetHostByName_internal
, MonoBoolean
, 5, (MonoString
, MonoStringOut
, MonoArrayOut
, MonoArrayOut
, gint32
))
527 HANDLES(NDNS_3
, "GetHostName_internal(string&)", ves_icall_System_Net_Dns_GetHostName_internal
, MonoBoolean
, 1, (MonoStringOut
))
530 #if defined(ENABLE_MONODROID)
531 ICALL_TYPE(LINUXNETWORKCHANGE
, "System.Net.NetworkInformation.LinuxNetworkChange", LINUXNETWORKCHANGE_1
)
532 NOHANDLES(ICALL(LINUXNETWORKCHANGE_1
, "CloseNLSocket", ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_CloseNLSocket
))
533 NOHANDLES(ICALL(LINUXNETWORKCHANGE_2
, "CreateNLSocket", ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_CreateNLSocket
))
534 NOHANDLES(ICALL(LINUXNETWORKCHANGE_3
, "ReadEvents", ves_icall_System_Net_NetworkInformation_LinuxNetworkChange_ReadEvents
))
537 #if !defined(DISABLE_SOCKETS) && (defined(HOST_DARWIN) || defined(HOST_BSD))
538 ICALL_TYPE(MAC_IFACE_PROPS
, "System.Net.NetworkInformation.MacOsIPInterfaceProperties", MAC_IFACE_PROPS_1
)
539 ICALL(MAC_IFACE_PROPS_1
, "ParseRouteInfo_internal", ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal
)
542 #ifndef DISABLE_SOCKETS
543 ICALL_TYPE(SOCK
, "System.Net.Sockets.Socket", SOCK_1
)
544 HANDLES(SOCK_1
, "Accept_internal(intptr,int&,bool)", ves_icall_System_Net_Sockets_Socket_Accept_internal
, gpointer
, 3, (gsize
, gint32_ref
, MonoBoolean
))
545 HANDLES(SOCK_2
, "Available_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_Available_internal
, gint32
, 2, (gsize
, gint32_ref
))
546 HANDLES(SOCK_3
, "Bind_internal(intptr,System.Net.SocketAddress,int&)", ves_icall_System_Net_Sockets_Socket_Bind_internal
, void, 3, (gsize
, MonoObject
, gint32_ref
))
547 HANDLES(SOCK_4
, "Blocking_internal(intptr,bool,int&)", ves_icall_System_Net_Sockets_Socket_Blocking_internal
, void, 3, (gsize
, MonoBoolean
, gint32_ref
))
548 HANDLES(SOCK_5
, "Close_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_Close_internal
, void, 2, (gsize
, gint32_ref
))
549 HANDLES(SOCK_6
, "Connect_internal(intptr,System.Net.SocketAddress,int&,bool)", ves_icall_System_Net_Sockets_Socket_Connect_internal
, void, 4, (gsize
, MonoObject
, gint32_ref
, MonoBoolean
))
550 HANDLES(SOCK_6a
, "Disconnect_internal(intptr,bool,int&)", ves_icall_System_Net_Sockets_Socket_Disconnect_internal
, void, 3, (gsize
, MonoBoolean
, gint32_ref
))
551 HANDLES(SOCK_6b
, "Duplicate_internal", ves_icall_System_Net_Sockets_Socket_Duplicate_internal
, MonoBoolean
, 4, (gpointer
, gint32
, gpointer_ref
, gint32_ref
))
552 //FIXME The array is ref but the icall does not write to it.
553 HANDLES(SOCK_7
, "GetSocketOption_arr_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,byte[]&,int&)", ves_icall_System_Net_Sockets_Socket_GetSocketOption_arr_internal
, void, 5, (gsize
, gint32
, gint32
, MonoArray
, gint32_ref
))
554 HANDLES(SOCK_8
, "GetSocketOption_obj_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,object&,int&)", ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal
, void, 5, (gsize
, gint32
, gint32
, MonoObjectOut
, gint32_ref
))
555 HANDLES(SOCK_21
, "IOControl_internal(intptr,int,byte[],byte[],int&)", ves_icall_System_Net_Sockets_Socket_IOControl_internal
, int, 5, (gsize
, gint32
, MonoArray
, MonoArray
, gint32_ref
))
556 HANDLES(SOCK_9
, "Listen_internal(intptr,int,int&)", ves_icall_System_Net_Sockets_Socket_Listen_internal
, void, 3, (gsize
, guint32
, gint32_ref
))
557 HANDLES(SOCK_10
, "LocalEndPoint_internal(intptr,int,int&)", ves_icall_System_Net_Sockets_Socket_LocalEndPoint_internal
, MonoObject
, 3, (gsize
, gint32
, gint32_ref
))
558 HANDLES(SOCK_11
, "Poll_internal", ves_icall_System_Net_Sockets_Socket_Poll_internal
, MonoBoolean
, 4, (gsize
, int, int, gint32_ref
))
559 HANDLES(SOCK_13
, "ReceiveFrom_internal(intptr,byte*,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&,bool)", ves_icall_System_Net_Sockets_Socket_ReceiveFrom_internal
, gint32
, 7, (gsize
, char_ptr
, gint32
, gint32
, MonoObjectInOut
, gint32_ref
, MonoBoolean
))
560 HANDLES(SOCK_11a
, "Receive_internal(intptr,System.Net.Sockets.Socket/WSABUF*,int,System.Net.Sockets.SocketFlags,int&,bool)", ves_icall_System_Net_Sockets_Socket_Receive_array_internal
, gint32
, 6, (gsize
, WSABUF_ptr
, gint32
, gint32
, gint32_ref
, MonoBoolean
))
561 HANDLES(SOCK_12
, "Receive_internal(intptr,byte*,int,System.Net.Sockets.SocketFlags,int&,bool)", ves_icall_System_Net_Sockets_Socket_Receive_internal
, gint32
, 6, (gsize
, char_ptr
, gint32
, gint32
, gint32_ref
, MonoBoolean
))
562 HANDLES(SOCK_14
, "RemoteEndPoint_internal(intptr,int,int&)", ves_icall_System_Net_Sockets_Socket_RemoteEndPoint_internal
, MonoObject
, 3, (gsize
, gint32
, gint32_ref
))
563 HANDLES(SOCK_15
, "Select_internal(System.Net.Sockets.Socket[]&,int,int&)", ves_icall_System_Net_Sockets_Socket_Select_internal
, void, 3, (MonoArrayInOut
, gint32
, gint32_ref
))
564 HANDLES(SOCK_15a
, "SendFile_internal(intptr,string,byte[],byte[],System.Net.Sockets.TransmitFileOptions,int&,bool)", ves_icall_System_Net_Sockets_Socket_SendFile_internal
, MonoBoolean
, 7, (gsize
, MonoString
, MonoArray
, MonoArray
, int, gint32_ref
, MonoBoolean
))
565 HANDLES(SOCK_16
, "SendTo_internal(intptr,byte*,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress,int&,bool)", ves_icall_System_Net_Sockets_Socket_SendTo_internal
, gint32
, 7, (gsize
, char_ptr
, gint32
, gint32
, MonoObject
, gint32_ref
, MonoBoolean
))
566 HANDLES(SOCK_16a
, "Send_internal(intptr,System.Net.Sockets.Socket/WSABUF*,int,System.Net.Sockets.SocketFlags,int&,bool)", ves_icall_System_Net_Sockets_Socket_Send_array_internal
, gint32
, 6, (gsize
, WSABUF_ptr
, gint32
, gint32
, gint32_ref
, MonoBoolean
))
567 HANDLES(SOCK_17
, "Send_internal(intptr,byte*,int,System.Net.Sockets.SocketFlags,int&,bool)", ves_icall_System_Net_Sockets_Socket_Send_internal
, gint32
, 6, (gsize
, char_ptr
, gint32
, gint32
, gint32_ref
, MonoBoolean
))
568 HANDLES(SOCK_18
, "SetSocketOption_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,object,byte[],int,int&)", ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal
, void, 7, (gsize
, gint32
, gint32
, MonoObject
, MonoArray
, gint32
, gint32_ref
))
569 HANDLES(SOCK_19
, "Shutdown_internal(intptr,System.Net.Sockets.SocketShutdown,int&)", ves_icall_System_Net_Sockets_Socket_Shutdown_internal
, void, 3, (gsize
, gint32
, gint32_ref
))
570 HANDLES(SOCK_20
, "Socket_internal(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType,int&)", ves_icall_System_Net_Sockets_Socket_Socket_internal
, gpointer
, 5, (MonoObject
, gint32
, gint32
, gint32
, gint32_ref
))
571 HANDLES(SOCK_20a
, "SupportsPortReuse", ves_icall_System_Net_Sockets_Socket_SupportPortReuse
, MonoBoolean
, 1, (MonoProtocolType
))
572 HANDLES(SOCK_21a
, "cancel_blocking_socket_operation", ves_icall_cancel_blocking_socket_operation
, void, 1, (MonoThreadObject
))
575 #ifndef DISABLE_SOCKETS
576 ICALL_TYPE(SOCKEX
, "System.Net.Sockets.SocketException", SOCKEX_1
)
577 NOHANDLES(ICALL(SOCKEX_1
, "WSAGetLastError_internal", ves_icall_System_Net_Sockets_SocketException_WSAGetLastError_internal
))
578 #endif /* !DISABLE_SOCKETS */
580 ICALL_TYPE(NUMBER_FORMATTER
, "System.NumberFormatter", NUMBER_FORMATTER_1
)
581 NOHANDLES(ICALL(NUMBER_FORMATTER_1
, "GetFormatterTables", ves_icall_System_NumberFormatter_GetFormatterTables
))
583 ICALL_TYPE(OBJ
, "System.Object", OBJ_1
)
584 HANDLES(OBJ_1
, "GetType", ves_icall_System_Object_GetType
, MonoReflectionType
, 1, (MonoObject
))
585 HANDLES(OBJ_2
, "InternalGetHashCode", mono_object_hash_icall
, int, 1, (MonoObject
))
586 HANDLES(OBJ_3
, "MemberwiseClone", ves_icall_System_Object_MemberwiseClone
, MonoObject
, 1, (MonoObject
))
588 ICALL_TYPE(ASSEM
, "System.Reflection.Assembly", ASSEM_2
)
589 HANDLES(ASSEM_2
, "GetCallingAssembly", ves_icall_System_Reflection_Assembly_GetCallingAssembly
, MonoReflectionAssembly
, 0, ())
590 HANDLES(ASSEM_3
, "GetEntryAssembly", ves_icall_System_Reflection_Assembly_GetEntryAssembly
, MonoReflectionAssembly
, 0, ())
591 HANDLES(ASSEM_4
, "GetExecutingAssembly", ves_icall_System_Reflection_Assembly_GetExecutingAssembly
, MonoReflectionAssembly
, 0, ())
592 HANDLES(ASSEM_13
, "GetTypes", ves_icall_System_Reflection_Assembly_GetTypes
, MonoArray
, 2, (MonoReflectionAssembly
, MonoBoolean
))
593 HANDLES(ASSEM_14
, "InternalGetAssemblyName", ves_icall_System_Reflection_Assembly_InternalGetAssemblyName
, void, 3, (MonoString
, MonoAssemblyName_ref
, MonoStringOut
))
594 HANDLES(ASSEM_12
, "InternalGetReferencedAssemblies", ves_icall_System_Reflection_Assembly_InternalGetReferencedAssemblies
, GPtrArray_ptr
, 1, (MonoReflectionAssembly
))
595 HANDLES(ASSEM_15
, "InternalGetType", ves_icall_System_Reflection_Assembly_InternalGetType
, MonoReflectionType
, 5, (MonoReflectionAssembly
, MonoReflectionModule
, MonoString
, MonoBoolean
, MonoBoolean
))
596 HANDLES(ASSEM_16a
, "LoadFile_internal", ves_icall_System_Reflection_Assembly_LoadFile_internal
, MonoReflectionAssembly
, 2, (MonoString
, MonoStackCrawlMark_ptr
))
597 HANDLES(ASSEM_17
, "LoadFrom", ves_icall_System_Reflection_Assembly_LoadFrom
, MonoReflectionAssembly
, 3, (MonoString
, MonoBoolean
, MonoStackCrawlMark_ptr
))
598 HANDLES(ASSEM_26
, "load_with_partial_name", ves_icall_System_Reflection_Assembly_load_with_partial_name
, MonoReflectionAssembly
, 2, (MonoString
, MonoObject
))
600 ICALL_TYPE(ASSEMN
, "System.Reflection.AssemblyName", ASSEMN_0
)
601 NOHANDLES(ICALL(ASSEMN_0
, "GetNativeName", ves_icall_System_Reflection_AssemblyName_GetNativeName
))
602 NOHANDLES(ICALL(ASSEMN_3
, "ParseAssemblyName", ves_icall_System_Reflection_AssemblyName_ParseAssemblyName
))
603 NOHANDLES(ICALL(ASSEMN_2
, "get_public_token", mono_digest_get_public_token
))
605 ICALL_TYPE(CATTR_DATA
, "System.Reflection.CustomAttributeData", CATTR_DATA_1
)
606 HANDLES(CATTR_DATA_1
, "ResolveArgumentsInternal", ves_icall_System_Reflection_CustomAttributeData_ResolveArgumentsInternal
, void, 6, (MonoReflectionMethod
, MonoReflectionAssembly
, gpointer
, guint32
, MonoArrayOut
, MonoArrayOut
))
608 ICALL_TYPE(ASSEMB
, "System.Reflection.Emit.AssemblyBuilder", ASSEMB_1
)
609 HANDLES(ASSEMB_1
, "UpdateNativeCustomAttributes", ves_icall_AssemblyBuilder_UpdateNativeCustomAttributes
, void, 1, (MonoReflectionAssemblyBuilder
))
610 HANDLES(ASSEMB_2
, "basic_init", ves_icall_AssemblyBuilder_basic_init
, void, 1, (MonoReflectionAssemblyBuilder
))
612 #ifndef DISABLE_REFLECTION_EMIT
613 ICALL_TYPE(CATTRB
, "System.Reflection.Emit.CustomAttributeBuilder", CATTRB_1
)
614 HANDLES(CATTRB_1
, "GetBlob", ves_icall_CustomAttributeBuilder_GetBlob
, MonoArray
, 7, (MonoReflectionAssembly
, MonoObject
, MonoArray
, MonoArray
, MonoArray
, MonoArray
, MonoArray
))
617 ICALL_TYPE(DYNM
, "System.Reflection.Emit.DynamicMethod", DYNM_1
)
618 HANDLES(DYNM_1
, "create_dynamic_method", ves_icall_DynamicMethod_create_dynamic_method
, void, 1, (MonoReflectionDynamicMethod
))
620 ICALL_TYPE(ENUMB
, "System.Reflection.Emit.EnumBuilder", ENUMB_1
)
621 HANDLES(ENUMB_1
, "setup_enum_type", ves_icall_EnumBuilder_setup_enum_type
, void, 2, (MonoReflectionType
, MonoReflectionType
))
623 ICALL_TYPE(MODULEB
, "System.Reflection.Emit.ModuleBuilder", MODULEB_10
)
624 HANDLES(MODULEB_10
, "GetRegisteredToken", ves_icall_ModuleBuilder_GetRegisteredToken
, MonoObject
, 2, (MonoReflectionModuleBuilder
, guint32
))
625 HANDLES(MODULEB_8
, "RegisterToken", ves_icall_ModuleBuilder_RegisterToken
, void, 3, (MonoReflectionModuleBuilder
, MonoObject
, guint32
))
626 HANDLES(MODULEB_1
, "WriteToFile", ves_icall_ModuleBuilder_WriteToFile
, void, 2, (MonoReflectionModuleBuilder
, FILE_HANDLE
))
627 HANDLES(MODULEB_2
, "basic_init", ves_icall_ModuleBuilder_basic_init
, void, 1, (MonoReflectionModuleBuilder
))
628 HANDLES(MODULEB_3
, "build_metadata", ves_icall_ModuleBuilder_build_metadata
, void, 1, (MonoReflectionModuleBuilder
))
629 HANDLES(MODULEB_5
, "getMethodToken", ves_icall_ModuleBuilder_getMethodToken
, gint32
, 3, (MonoReflectionModuleBuilder
, MonoReflectionMethod
, MonoArray
))
630 HANDLES(MODULEB_6
, "getToken", ves_icall_ModuleBuilder_getToken
, gint32
, 3, (MonoReflectionModuleBuilder
, MonoObject
, MonoBoolean
))
631 HANDLES(MODULEB_7
, "getUSIndex", ves_icall_ModuleBuilder_getUSIndex
, guint32
, 2, (MonoReflectionModuleBuilder
, MonoString
))
632 HANDLES(MODULEB_9
, "set_wrappers_type", ves_icall_ModuleBuilder_set_wrappers_type
, void, 2, (MonoReflectionModuleBuilder
, MonoReflectionType
))
634 ICALL_TYPE(SIGH
, "System.Reflection.Emit.SignatureHelper", SIGH_1
)
635 HANDLES(SIGH_1
, "get_signature_field", ves_icall_SignatureHelper_get_signature_field
, MonoArray
, 1, (MonoReflectionSigHelper
))
636 HANDLES(SIGH_2
, "get_signature_local", ves_icall_SignatureHelper_get_signature_local
, MonoArray
, 1, (MonoReflectionSigHelper
))
638 ICALL_TYPE(TYPEB
, "System.Reflection.Emit.TypeBuilder", TYPEB_1
)
639 HANDLES(TYPEB_1
, "create_runtime_class", ves_icall_TypeBuilder_create_runtime_class
, MonoReflectionType
, 1, (MonoReflectionTypeBuilder
))
641 ICALL_TYPE(EVENTI
, "System.Reflection.EventInfo", EVENTI_1
)
642 HANDLES(EVENTI_1
, "internal_from_handle_type", ves_icall_System_Reflection_EventInfo_internal_from_handle_type
, MonoReflectionEvent
, 2, (MonoEvent_ref
, MonoType_ref
))
644 ICALL_TYPE(FIELDI
, "System.Reflection.FieldInfo", FILEDI_1
)
645 HANDLES(FILEDI_1
, "get_marshal_info", ves_icall_System_Reflection_FieldInfo_get_marshal_info
, MonoReflectionMarshalAsAttribute
, 1, (MonoReflectionField
))
647 HANDLES(FILEDI_2
, "internal_from_handle_type", ves_icall_System_Reflection_FieldInfo_internal_from_handle_type
, MonoReflectionField
, 2, (MonoClassField_ref
, MonoType_ref
))
649 ICALL_TYPE(MBASE
, "System.Reflection.MethodBase", MBASE_1
)
650 HANDLES(MBASE_1
, "GetCurrentMethod", ves_icall_GetCurrentMethod
, MonoReflectionMethod
, 0, ())
652 ICALL_TYPE(MMETHI
, "System.Reflection.MonoMethodInfo", MMETHI_4
)
653 NOHANDLES(ICALL(MMETHI_4
, "get_method_attributes", ves_icall_get_method_attributes
))
654 HANDLES(MMETHI_1
, "get_method_info", ves_icall_get_method_info
, void, 2, (MonoMethod_ptr
, MonoMethodInfo_ref
))
655 HANDLES(MMETHI_2
, "get_parameter_info", ves_icall_System_Reflection_MonoMethodInfo_get_parameter_info
, MonoArray
, 2, (MonoMethod_ptr
, MonoReflectionMethod
))
656 HANDLES(MMETHI_3
, "get_retval_marshal", ves_icall_System_MonoMethodInfo_get_retval_marshal
, MonoReflectionMarshalAsAttribute
, 1, (MonoMethod_ptr
))
658 ICALL_TYPE(RASSEM
, "System.Reflection.RuntimeAssembly", RASSEM_1
)
659 HANDLES(RASSEM_1
, "GetAotIdInternal", ves_icall_System_Reflection_RuntimeAssembly_GetAotIdInternal
, MonoBoolean
, 1, (MonoArray
))
660 HANDLES(RASSEM_2
, "GetFilesInternal", ves_icall_System_Reflection_RuntimeAssembly_GetFilesInternal
, MonoObject
, 3, (MonoReflectionAssembly
, MonoString
, MonoBoolean
))
661 HANDLES(RASSEM_3
, "GetManifestModuleInternal", ves_icall_System_Reflection_Assembly_GetManifestModuleInternal
, MonoReflectionModule
, 1, (MonoReflectionAssembly
))
662 HANDLES(RASSEM_4
, "GetManifestResourceInfoInternal", ves_icall_System_Reflection_RuntimeAssembly_GetManifestResourceInfoInternal
, MonoBoolean
, 3, (MonoReflectionAssembly
, MonoString
, MonoManifestResourceInfo
))
663 HANDLES(RASSEM_5
, "GetManifestResourceInternal", ves_icall_System_Reflection_RuntimeAssembly_GetManifestResourceInternal
, gpointer
, 4, (MonoReflectionAssembly
, MonoString
, gint32_ref
, MonoReflectionModuleOut
))
664 HANDLES(RASSEM_6
, "GetManifestResourceNames", ves_icall_System_Reflection_RuntimeAssembly_GetManifestResourceNames
, MonoArray
, 1, (MonoReflectionAssembly
))
665 HANDLES(RASSEM_7
, "GetModulesInternal", ves_icall_System_Reflection_RuntimeAssembly_GetModulesInternal
, MonoArray
, 1, (MonoReflectionAssembly
))
666 HANDLES(RASSEM_8
, "InternalImageRuntimeVersion", ves_icall_System_Reflection_RuntimeAssembly_InternalImageRuntimeVersion
, MonoString
, 1, (MonoReflectionAssembly
))
667 HANDLES(RASSEM_9
, "LoadPermissions", ves_icall_System_Reflection_RuntimeAssembly_LoadPermissions
, MonoBoolean
, 7, (MonoReflectionAssembly
, char_ptr_ref
, guint32_ref
, char_ptr_ref
, guint32_ref
, char_ptr_ref
, guint32_ref
))
668 HANDLES(RASSEM_10
, "get_EntryPoint", ves_icall_System_Reflection_RuntimeAssembly_get_EntryPoint
, MonoReflectionMethod
, 1, (MonoReflectionAssembly
))
669 HANDLES(RASSEM_11
, "get_ReflectionOnly", ves_icall_System_Reflection_RuntimeAssembly_get_ReflectionOnly
, MonoBoolean
, 1, (MonoReflectionAssembly
))
670 HANDLES(RASSEM_12
, "get_code_base", ves_icall_System_Reflection_RuntimeAssembly_get_code_base
, MonoString
, 2, (MonoReflectionAssembly
, MonoBoolean
))
671 HANDLES(RASSEM_13
, "get_fullname", ves_icall_System_Reflection_RuntimeAssembly_get_fullname
, MonoString
, 1, (MonoReflectionAssembly
))
672 HANDLES(RASSEM_14
, "get_global_assembly_cache", ves_icall_System_Reflection_RuntimeAssembly_get_global_assembly_cache
, MonoBoolean
, 1, (MonoReflectionAssembly
))
673 HANDLES(RASSEM_15
, "get_location", ves_icall_System_Reflection_RuntimeAssembly_get_location
, MonoString
, 1, (MonoReflectionAssembly
))
675 ICALL_TYPE(MCMETH
, "System.Reflection.RuntimeConstructorInfo", MCMETH_1
)
676 HANDLES(MCMETH_1
, "GetGenericMethodDefinition_impl", ves_icall_RuntimeMethodInfo_GetGenericMethodDefinition
, MonoReflectionMethod
, 1, (MonoReflectionMethod
))
677 HANDLES(MCMETH_2
, "InternalInvoke", ves_icall_InternalInvoke
, MonoObject
, 4, (MonoReflectionMethod
, MonoObject
, MonoArray
, MonoExceptionOut
))
678 HANDLES(MCMETH_3
, "get_core_clr_security_level", ves_icall_RuntimeMethodInfo_get_core_clr_security_level
, int, 1, (MonoReflectionMethod
))
679 HANDLES_REUSE_WRAPPER(MCMETH_4
, "get_metadata_token", ves_icall_reflection_get_token
)
681 ICALL_TYPE(MEV
, "System.Reflection.RuntimeEventInfo", MEV_1
)
682 HANDLES(MEV_1
, "get_event_info", ves_icall_RuntimeEventInfo_get_event_info
, void, 2, (MonoReflectionMonoEvent
, MonoEventInfo_ref
))
683 HANDLES_REUSE_WRAPPER(MEV_2
, "get_metadata_token", ves_icall_reflection_get_token
)
685 ICALL_TYPE(MFIELD
, "System.Reflection.RuntimeFieldInfo", MFIELD_1
)
686 HANDLES(MFIELD_1
, "GetFieldOffset", ves_icall_RuntimeFieldInfo_GetFieldOffset
, gint32
, 1, (MonoReflectionField
))
687 HANDLES(MFIELD_2
, "GetParentType", ves_icall_RuntimeFieldInfo_GetParentType
, MonoReflectionType
, 2, (MonoReflectionField
, MonoBoolean
))
688 HANDLES(MFIELD_3
, "GetRawConstantValue", ves_icall_RuntimeFieldInfo_GetRawConstantValue
, MonoObject
, 1, (MonoReflectionField
))
689 HANDLES(MFIELD_4
, "GetTypeModifiers", ves_icall_System_Reflection_FieldInfo_GetTypeModifiers
, MonoArray
, 2, (MonoReflectionField
, MonoBoolean
))
690 HANDLES(MFIELD_5
, "GetValueInternal", ves_icall_RuntimeFieldInfo_GetValueInternal
, MonoObject
, 2, (MonoReflectionField
, MonoObject
))
691 HANDLES(MFIELD_6
, "ResolveType", ves_icall_RuntimeFieldInfo_ResolveType
, MonoReflectionType
, 1, (MonoReflectionField
))
692 HANDLES(MFIELD_7
, "SetValueInternal", ves_icall_RuntimeFieldInfo_SetValueInternal
, void, 3, (MonoReflectionField
, MonoObject
, MonoObject
))
693 HANDLES_REUSE_WRAPPER(MFIELD_8
, "UnsafeGetValue", ves_icall_RuntimeFieldInfo_GetValueInternal
)
694 HANDLES(MFIELD_9
, "get_core_clr_security_level", ves_icall_RuntimeFieldInfo_get_core_clr_security_level
, int, 1, (MonoReflectionField
))
695 HANDLES_REUSE_WRAPPER(MFIELD_10
, "get_metadata_token", ves_icall_reflection_get_token
)
697 ICALL_TYPE(RMETHODINFO
, "System.Reflection.RuntimeMethodInfo", RMETHODINFO_1
)
698 HANDLES(RMETHODINFO_1
, "GetGenericArguments", ves_icall_RuntimeMethodInfo_GetGenericArguments
, MonoArray
, 1, (MonoReflectionMethod
))
699 HANDLES_REUSE_WRAPPER(RMETHODINFO_2
, "GetGenericMethodDefinition_impl", ves_icall_RuntimeMethodInfo_GetGenericMethodDefinition
)
700 HANDLES(RMETHODINFO_3
, "GetMethodBodyInternal", ves_icall_System_Reflection_RuntimeMethodInfo_GetMethodBodyInternal
, MonoReflectionMethodBody
, 1, (MonoMethod_ptr
))
701 HANDLES(RMETHODINFO_4
, "GetMethodFromHandleInternalType_native", ves_icall_System_Reflection_RuntimeMethodInfo_GetMethodFromHandleInternalType_native
, MonoReflectionMethod
, 3, (MonoMethod_ptr
, MonoType_ptr
, MonoBoolean
))
702 HANDLES(RMETHODINFO_5
, "GetPInvoke", ves_icall_RuntimeMethodInfo_GetPInvoke
, void, 4, (MonoReflectionMethod
, int_ref
, MonoStringOut
, MonoStringOut
))
703 HANDLES_REUSE_WRAPPER(RMETHODINFO_6
, "InternalInvoke", ves_icall_InternalInvoke
)
704 HANDLES(RMETHODINFO_7
, "MakeGenericMethod_impl", ves_icall_RuntimeMethodInfo_MakeGenericMethod_impl
, MonoReflectionMethod
, 2, (MonoReflectionMethod
, MonoArray
))
705 HANDLES(RMETHODINFO_8
, "get_IsGenericMethod", ves_icall_RuntimeMethodInfo_get_IsGenericMethod
, MonoBoolean
, 1, (MonoReflectionMethod
))
706 HANDLES(RMETHODINFO_9
, "get_IsGenericMethodDefinition", ves_icall_RuntimeMethodInfo_get_IsGenericMethodDefinition
, MonoBoolean
, 1, (MonoReflectionMethod
))
707 HANDLES(RMETHODINFO_10
, "get_base_method", ves_icall_RuntimeMethodInfo_get_base_method
, MonoReflectionMethod
, 2, (MonoReflectionMethod
, MonoBoolean
))
708 HANDLES_REUSE_WRAPPER(RMETHODINFO_11
, "get_core_clr_security_level", ves_icall_RuntimeMethodInfo_get_core_clr_security_level
)
709 HANDLES_REUSE_WRAPPER(RMETHODINFO_12
, "get_metadata_token", ves_icall_reflection_get_token
)
710 HANDLES(RMETHODINFO_13
, "get_name", ves_icall_RuntimeMethodInfo_get_name
, MonoString
, 1, (MonoReflectionMethod
))
712 ICALL_TYPE(MODULE
, "System.Reflection.RuntimeModule", MODULE_2
)
713 HANDLES(MODULE_2
, "GetGlobalType", ves_icall_System_Reflection_RuntimeModule_GetGlobalType
, MonoReflectionType
, 1, (MonoImage_ptr
))
714 HANDLES(MODULE_3
, "GetGuidInternal", ves_icall_System_Reflection_RuntimeModule_GetGuidInternal
, void, 2, (MonoImage_ptr
, MonoArray
))
715 HANDLES(MODULE_14
, "GetHINSTANCE", ves_icall_System_Reflection_RuntimeModule_GetHINSTANCE
, gpointer
, 1, (MonoImage_ptr
))
716 HANDLES(MODULE_4
, "GetMDStreamVersion", ves_icall_System_Reflection_RuntimeModule_GetMDStreamVersion
, gint32
, 1, (MonoImage_ptr
))
717 HANDLES(MODULE_5
, "GetPEKind", ves_icall_System_Reflection_RuntimeModule_GetPEKind
, void, 3, (MonoImage_ptr
, gint32_ptr
, gint32_ptr
))
718 HANDLES(MODULE_6
, "InternalGetTypes", ves_icall_System_Reflection_RuntimeModule_InternalGetTypes
, MonoArray
, 1, (MonoImage_ptr
))
719 HANDLES(MODULE_7
, "ResolveFieldToken", ves_icall_System_Reflection_RuntimeModule_ResolveFieldToken
, MonoClassField_ptr
, 5, (MonoImage_ptr
, guint32
, MonoArray
, MonoArray
, MonoResolveTokenError_ref
))
720 HANDLES(MODULE_8
, "ResolveMemberToken", ves_icall_System_Reflection_RuntimeModule_ResolveMemberToken
, MonoObject
, 5, (MonoImage_ptr
, guint32
, MonoArray
, MonoArray
, MonoResolveTokenError_ref
))
721 HANDLES(MODULE_9
, "ResolveMethodToken", ves_icall_System_Reflection_RuntimeModule_ResolveMethodToken
, MonoMethod_ptr
, 5, (MonoImage_ptr
, guint32
, MonoArray
, MonoArray
, MonoResolveTokenError_ref
))
722 HANDLES(MODULE_10
, "ResolveSignature", ves_icall_System_Reflection_RuntimeModule_ResolveSignature
, MonoArray
, 3, (MonoImage_ptr
, guint32
, MonoResolveTokenError_ref
))
723 HANDLES(MODULE_11
, "ResolveStringToken", ves_icall_System_Reflection_RuntimeModule_ResolveStringToken
, MonoString
, 3, (MonoImage_ptr
, guint32
, MonoResolveTokenError_ref
))
724 HANDLES(MODULE_12
, "ResolveTypeToken", ves_icall_System_Reflection_RuntimeModule_ResolveTypeToken
, MonoType_ptr
, 5, (MonoImage_ptr
, guint32
, MonoArray
, MonoArray
, MonoResolveTokenError_ref
))
725 HANDLES(MODULE_13
, "get_MetadataToken", ves_icall_reflection_get_token
, guint32
, 1, (MonoObject
))
727 ICALL_TYPE(PARAMI
, "System.Reflection.RuntimeParameterInfo", MPARAMI_1
)
728 HANDLES_REUSE_WRAPPER(MPARAMI_1
, "GetMetadataToken", ves_icall_reflection_get_token
)
729 HANDLES(MPARAMI_2
, "GetTypeModifiers", ves_icall_RuntimeParameterInfo_GetTypeModifiers
, MonoArray
, 4, (MonoReflectionType
, MonoObject
, int, MonoBoolean
))
731 ICALL_TYPE(MPROP
, "System.Reflection.RuntimePropertyInfo", MPROP_1
)
732 HANDLES(MPROP_1
, "GetTypeModifiers", ves_icall_RuntimePropertyInfo_GetTypeModifiers
, MonoArray
, 2, (MonoReflectionProperty
, MonoBoolean
))
733 ICALL(MPROP_2
, "get_default_value", ves_icall_property_info_get_default_value
)
734 HANDLES_REUSE_WRAPPER(MPROP_3
, "get_metadata_token", ves_icall_reflection_get_token
)
735 HANDLES(MPROP_4
, "get_property_info", ves_icall_RuntimePropertyInfo_get_property_info
, void, 3, (MonoReflectionProperty
, MonoPropertyInfo_ref
, PInfo
))
736 HANDLES(MPROP_5
, "internal_from_handle_type", ves_icall_System_Reflection_RuntimePropertyInfo_internal_from_handle_type
, MonoReflectionProperty
, 2, (MonoProperty_ptr
, MonoType_ptr
))
738 ICALL_TYPE(RUNH
, "System.Runtime.CompilerServices.RuntimeHelpers", RUNH_1
)
739 HANDLES(RUNH_1
, "GetObjectValue", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetObjectValue
, MonoObject
, 1, (MonoObject
))
740 HANDLES(RUNH_3
, "InitializeArray", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray
, void, 2, (MonoArray
, MonoClassField_ptr
))
741 HANDLES(RUNH_4
, "RunClassConstructor", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor
, void, 1, (MonoType_ptr
))
742 HANDLES(RUNH_5
, "RunModuleConstructor", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunModuleConstructor
, void, 1, (MonoImage_ptr
))
743 NOHANDLES(ICALL(RUNH_5h
, "SufficientExecutionStack", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_SufficientExecutionStack
))
744 NOHANDLES(ICALL(RUNH_6
, "get_OffsetToStringData", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetOffsetToStringData
))
746 ICALL_TYPE(GCH
, "System.Runtime.InteropServices.GCHandle", GCH_1
)
747 NOHANDLES(ICALL(GCH_1
, "CheckCurrentDomain", ves_icall_System_GCHandle_CheckCurrentDomain
))
748 NOHANDLES(ICALL(GCH_2
, "FreeHandle", ves_icall_System_GCHandle_FreeHandle
))
749 NOHANDLES(ICALL(GCH_3
, "GetAddrOfPinnedObject", ves_icall_System_GCHandle_GetAddrOfPinnedObject
))
750 HANDLES(GCH_4
, "GetTarget", ves_icall_System_GCHandle_GetTarget
, MonoObject
, 1, (guint32
))
751 HANDLES(GCH_5
, "GetTargetHandle", ves_icall_System_GCHandle_GetTargetHandle
, guint32
, 3, (MonoObject
, guint32
, gint32
))
753 #if !defined(DISABLE_COM) || defined (HOST_WIN32)
754 ICALL_TYPE(MARSHAL
, "System.Runtime.InteropServices.Marshal", MARSHAL_1
)
755 NOHANDLES(ICALL(MARSHAL_1
, "AddRefInternal", ves_icall_System_Runtime_InteropServices_Marshal_AddRefInternal
))
757 ICALL_TYPE(MARSHAL
, "System.Runtime.InteropServices.Marshal", MARSHAL_2
)
759 HANDLES(MARSHAL_2
, "AllocCoTaskMem", ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMem
, gpointer
, 1, (int))
760 HANDLES(MARSHAL_51
,"AllocCoTaskMemSize(uintptr)", ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMemSize
, gpointer
, 1, (gsize
))
761 HANDLES(MARSHAL_3
, "AllocHGlobal", ves_icall_System_Runtime_InteropServices_Marshal_AllocHGlobal
, gpointer
, 1, (gsize
))
762 NOHANDLES(ICALL(MARSHAL_50
, "BufferToBSTR", ves_icall_System_Runtime_InteropServices_Marshal_BufferToBSTR
))
763 HANDLES(MARSHAL_4
, "DestroyStructure", ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure
, void, 2, (gpointer
, MonoReflectionType
))
764 NOHANDLES(ICALL(MARSHAL_5
, "FreeBSTR", ves_icall_System_Runtime_InteropServices_Marshal_FreeBSTR
))
765 NOHANDLES(ICALL(MARSHAL_6
, "FreeCoTaskMem", ves_icall_System_Runtime_InteropServices_Marshal_FreeCoTaskMem
))
766 NOHANDLES(ICALL(MARSHAL_7
, "FreeHGlobal", ves_icall_System_Runtime_InteropServices_Marshal_FreeHGlobal
))
767 HANDLES(MARSHAL_7a
, "GetArrayElementSize", ves_icall_System_Runtime_InteropServices_Marshal_GetArrayElementSize
, int, 1, (MonoReflectionType
))
769 HANDLES(MARSHAL_44
, "GetCCW", ves_icall_System_Runtime_InteropServices_Marshal_GetCCW
, gpointer
, 2, (MonoObject
, MonoReflectionType
))
770 HANDLES(MARSHAL_8
, "GetComSlotForMethodInfoInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetComSlotForMethodInfoInternal
, guint32
, 1, (MonoReflectionMethod
))
772 HANDLES(MARSHAL_9
, "GetDelegateForFunctionPointerInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetDelegateForFunctionPointerInternal
, MonoDelegate
, 2, (gpointer
, MonoReflectionType
))
773 HANDLES(MARSHAL_10
, "GetFunctionPointerForDelegateInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetFunctionPointerForDelegateInternal
, gpointer
, 1, (MonoDelegate
))
775 HANDLES(MARSHAL_52
, "GetHRForException_WinRT", ves_icall_System_Runtime_InteropServices_Marshal_GetHRForException_WinRT
, int, 1, (MonoException
))
776 HANDLES(MARSHAL_45
, "GetIDispatchForObjectInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetIDispatchForObjectInternal
, gpointer
, 1, (MonoObject
))
777 HANDLES(MARSHAL_46
, "GetIUnknownForObjectInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetIUnknownForObjectInternal
, gpointer
, 1, (MonoObject
))
779 NOHANDLES(ICALL(MARSHAL_11
, "GetLastWin32Error", ves_icall_System_Runtime_InteropServices_Marshal_GetLastWin32Error
))
781 HANDLES(MARSHAL_53
, "GetNativeActivationFactory", ves_icall_System_Runtime_InteropServices_Marshal_GetNativeActivationFactory
, MonoObject
, 1, (MonoObject
))
782 HANDLES(MARSHAL_47
, "GetObjectForCCW", ves_icall_System_Runtime_InteropServices_Marshal_GetObjectForCCW
, MonoObject
, 1, (gpointer
))
783 HANDLES(MARSHAL_54
, "GetRawIUnknownForComObjectNoAddRef", ves_icall_System_Runtime_InteropServices_Marshal_GetRawIUnknownForComObjectNoAddRef
, gpointer
, 1, (MonoObject
))
784 HANDLES(MARSHAL_48
, "IsComObject", ves_icall_System_Runtime_InteropServices_Marshal_IsComObject
, MonoBoolean
, 1, (MonoObject
))
786 HANDLES(MARSHAL_48a
, "IsPinnableType", ves_icall_System_Runtime_InteropServices_Marshal_IsPinnableType
, MonoBoolean
, 1, (MonoReflectionType
))
787 HANDLES(MARSHAL_12
, "OffsetOf", ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf
, int, 2, (MonoReflectionType
, MonoString
))
788 HANDLES(MARSHAL_13
, "Prelink", ves_icall_System_Runtime_InteropServices_Marshal_Prelink
, void, 1, (MonoReflectionMethod
))
789 HANDLES(MARSHAL_14
, "PrelinkAll", ves_icall_System_Runtime_InteropServices_Marshal_PrelinkAll
, void, 1, (MonoReflectionType
))
790 HANDLES(MARSHAL_15
, "PtrToStringAnsi(intptr)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi
, MonoString
, 1, (const_char_ptr
))
791 HANDLES(MARSHAL_16
, "PtrToStringAnsi(intptr,int)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len
, MonoString
, 2, (const_char_ptr
, gint32
))
792 HANDLES(MARSHAL_17
, "PtrToStringBSTR", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringBSTR
, MonoString
, 1, (mono_bstr_const
))
793 HANDLES(MARSHAL_18
, "PtrToStringUni(intptr)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni
, MonoString
, 1, (const_gunichar2_ptr
))
794 HANDLES(MARSHAL_19
, "PtrToStringUni(intptr,int)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni_len
, MonoString
, 2, (const_gunichar2_ptr
, gint32
))
795 HANDLES(MARSHAL_20
, "PtrToStructure(intptr,System.Type)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type
, MonoObject
, 2, (gconstpointer
, MonoReflectionType
))
796 HANDLES(MARSHAL_21
, "PtrToStructure(intptr,object)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure
, void, 2, (gconstpointer
, MonoObject
))
797 #if !defined (DISABLE_COM) || defined (HOST_WIN32)
798 NOHANDLES(ICALL(MARSHAL_22
, "QueryInterfaceInternal", ves_icall_System_Runtime_InteropServices_Marshal_QueryInterfaceInternal
))
800 HANDLES(MARSHAL_43
, "ReAllocCoTaskMem", ves_icall_System_Runtime_InteropServices_Marshal_ReAllocCoTaskMem
, gpointer
, 2, (gpointer
, int))
801 HANDLES(MARSHAL_23
, "ReAllocHGlobal", ves_icall_System_Runtime_InteropServices_Marshal_ReAllocHGlobal
, gpointer
, 2, (gpointer
, gsize
))
803 HANDLES(MARSHAL_49
, "ReleaseComObjectInternal", ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal
, gint32
, 1, (MonoObject
))
805 #if !defined (DISABLE_COM) || defined (HOST_WIN32)
806 NOHANDLES(ICALL(MARSHAL_29
, "ReleaseInternal", ves_icall_System_Runtime_InteropServices_Marshal_ReleaseInternal
))
808 HANDLES(MARSHAL_30
, "SizeOf", ves_icall_System_Runtime_InteropServices_Marshal_SizeOf
, guint32
, 1, (MonoReflectionType
))
809 HANDLES(MARSHAL_31
, "SizeOfHelper", ves_icall_System_Runtime_InteropServices_Marshal_SizeOfHelper
, guint32
, 2, (MonoReflectionType
, MonoBoolean
))
810 HANDLES(MARSHAL_32
, "StringToHGlobalAnsi", ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi
, char_ptr
, 2, (const_gunichar2_ptr
, int))
811 HANDLES(MARSHAL_33
, "StringToHGlobalUni", ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni
, gunichar2_ptr
, 2, (const_gunichar2_ptr
, int))
812 HANDLES(MARSHAL_34
, "StructureToPtr", ves_icall_System_Runtime_InteropServices_Marshal_StructureToPtr
, void, 3, (MonoObject
, gpointer
, MonoBoolean
))
813 HANDLES(MARSHAL_35
, "UnsafeAddrOfPinnedArrayElement", ves_icall_System_Runtime_InteropServices_Marshal_UnsafeAddrOfPinnedArrayElement
, gpointer
, 2, (MonoArray
, int))
814 HANDLES(MARSHAL_41
, "copy_from_unmanaged_fixed", ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged
, void, 5, (gconstpointer
, gint32
, MonoArray
, gint32
, gpointer
))
815 HANDLES(MARSHAL_42
, "copy_to_unmanaged_fixed", ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged
, void, 5, (MonoArray
, gint32
, gpointer
, gint32
, gconstpointer
))
817 ICALL_TYPE(RUNTIMEINFO
, "System.Runtime.InteropServices.RuntimeInformation", RUNTIMEINFO_1
)
818 HANDLES(RUNTIMEINFO_1
, "GetOSName", ves_icall_System_Runtime_InteropServices_RuntimeInformation_GetOSName
, MonoString
, 0, ())
819 HANDLES(RUNTIMEINFO_2
, "GetRuntimeArchitecture", ves_icall_System_Runtime_InteropServices_RuntimeInformation_GetRuntimeArchitecture
, MonoString
, 0, ())
822 ICALL_TYPE(WINDOWSRUNTIME_UNM
, "System.Runtime.InteropServices.WindowsRuntime.UnsafeNativeMethods", WINDOWSRUNTIME_UNM_0
)
823 HANDLES(WINDOWSRUNTIME_UNM_0
, "GetRestrictedErrorInfo", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_GetRestrictedErrorInfo
, MonoObject
, 0, ())
824 HANDLES(WINDOWSRUNTIME_UNM_1
, "RoOriginateLanguageException", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_RoOriginateLanguageException
, MonoBoolean
, 3, (int, MonoString
, gpointer
))
825 HANDLES(WINDOWSRUNTIME_UNM_2
, "RoReportUnhandledError", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_RoReportUnhandledError
, void, 1, (MonoObject
))
826 HANDLES(WINDOWSRUNTIME_UNM_3
, "WindowsCreateString", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_WindowsCreateString
, int, 3, (MonoString
, int, gpointer_ptr
))
827 HANDLES(WINDOWSRUNTIME_UNM_4
, "WindowsDeleteString", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_WindowsDeleteString
, int, 1, (gpointer
))
828 HANDLES(WINDOWSRUNTIME_UNM_5
, "WindowsGetStringRawBuffer", ves_icall_System_Runtime_InteropServices_WindowsRuntime_UnsafeNativeMethods_WindowsGetStringRawBuffer
, mono_unichar2_ptr
, 2, (gpointer
, unsigned_ptr
))
831 ICALL_TYPE(ACTS
, "System.Runtime.Remoting.Activation.ActivationServices", ACTS_1
)
832 HANDLES(ACTS_1
, "AllocateUninitializedClassInstance", ves_icall_System_Runtime_Activation_ActivationServices_AllocateUninitializedClassInstance
, MonoObject
, 1, (MonoReflectionType
))
833 HANDLES(ACTS_2
, "EnableProxyActivation", ves_icall_System_Runtime_Activation_ActivationServices_EnableProxyActivation
, void, 2, (MonoReflectionType
, MonoBoolean
))
835 ICALL_TYPE(CONTEXT
, "System.Runtime.Remoting.Contexts.Context", CONTEXT_1
)
836 HANDLES(CONTEXT_1
, "RegisterContext", ves_icall_System_Runtime_Remoting_Contexts_Context_RegisterContext
, void, 1, (MonoAppContext
))
837 HANDLES(CONTEXT_2
, "ReleaseContext", ves_icall_System_Runtime_Remoting_Contexts_Context_ReleaseContext
, void, 1, (MonoAppContext
))
839 ICALL_TYPE(ARES
, "System.Runtime.Remoting.Messaging.AsyncResult", ARES_1
)
840 HANDLES(ARES_1
, "Invoke", ves_icall_System_Runtime_Remoting_Messaging_AsyncResult_Invoke
, MonoObject
, 1, (MonoAsyncResult
))
842 #ifndef DISABLE_REMOTING
843 ICALL_TYPE(REALP
, "System.Runtime.Remoting.Proxies.RealProxy", REALP_1
)
844 HANDLES(REALP_1
, "InternalGetProxyType", ves_icall_Remoting_RealProxy_InternalGetProxyType
, MonoReflectionType
, 1, (MonoTransparentProxy
))
845 HANDLES(REALP_2
, "InternalGetTransparentProxy", ves_icall_Remoting_RealProxy_GetTransparentProxy
, MonoObject
, 2, (MonoObject
, MonoString
))
847 ICALL_TYPE(REMSER
, "System.Runtime.Remoting.RemotingServices", REMSER_0
)
848 HANDLES(REMSER_0
, "GetVirtualMethod", ves_icall_Remoting_RemotingServices_GetVirtualMethod
, MonoReflectionMethod
, 2, (MonoReflectionType
, MonoReflectionMethod
))
849 HANDLES(REMSER_1
, "InternalExecute", ves_icall_InternalExecute
, MonoObject
, 4, (MonoReflectionMethod
, MonoObject
, MonoArray
, MonoArrayOut
))
850 HANDLES(REMSER_2
, "IsTransparentProxy", ves_icall_IsTransparentProxy
, MonoBoolean
, 1, (MonoObject
))
853 ICALL_TYPE(RUNIMPORT
, "System.Runtime.RuntimeImports", RUNIMPORT_1
)
854 NOHANDLES(ICALL(RUNIMPORT_1
, "Memmove", ves_icall_System_Runtime_RuntimeImports_Memmove
))
855 NOHANDLES(ICALL(RUNIMPORT_2
, "Memmove_wbarrier", ves_icall_System_Runtime_RuntimeImports_Memmove_wbarrier
))
856 NOHANDLES(ICALL(RUNIMPORT_3
, "ZeroMemory", ves_icall_System_Runtime_RuntimeImports_ZeroMemory
))
857 NOHANDLES(ICALL(RUNIMPORT_4
, "_ecvt_s", ves_icall_System_Runtime_RuntimeImports_ecvt_s
))
859 ICALL_TYPE(RVH
, "System.Runtime.Versioning.VersioningHelper", RVH_1
)
860 HANDLES(RVH_1
, "GetRuntimeId", ves_icall_System_Runtime_Versioning_VersioningHelper_GetRuntimeId
, gint32
, 0, ())
862 ICALL_TYPE(RFH
, "System.RuntimeFieldHandle", RFH_1
)
863 HANDLES(RFH_1
, "GetValueDirect", ves_icall_System_RuntimeFieldHandle_GetValueDirect
, MonoObject
, 4, (MonoReflectionField
, MonoReflectionType
, MonoTypedRef_ptr
, MonoReflectionType
))
864 HANDLES(RFH_1a
, "SetValueDirect", ves_icall_System_RuntimeFieldHandle_SetValueDirect
, void, 5, (MonoReflectionField
, MonoReflectionType
, MonoTypedRef_ptr
, MonoObject
, MonoReflectionType
))
865 HANDLES_REUSE_WRAPPER(RFH_2
, "SetValueInternal", ves_icall_RuntimeFieldInfo_SetValueInternal
)
867 ICALL_TYPE(MHAN
, "System.RuntimeMethodHandle", MHAN_1
)
868 HANDLES(MHAN_1
, "GetFunctionPointer", ves_icall_RuntimeMethodHandle_GetFunctionPointer
, gpointer
, 1, (MonoMethod_ptr
))
870 ICALL_TYPE(RT
, "System.RuntimeType", RT_1
)
871 HANDLES(RT_1
, "CreateInstanceInternal", ves_icall_System_Activator_CreateInstanceInternal
, MonoObject
, 1, (MonoReflectionType
))
872 HANDLES(RT_2
, "GetConstructors_native", ves_icall_RuntimeType_GetConstructors_native
, GPtrArray_ptr
, 2, (MonoReflectionType
, guint32
))
873 HANDLES(RT_30
, "GetCorrespondingInflatedConstructor", ves_icall_RuntimeType_GetCorrespondingInflatedMethod
, MonoReflectionMethod
, 2, (MonoReflectionType
, MonoReflectionMethod
))
874 HANDLES_REUSE_WRAPPER(RT_31
, "GetCorrespondingInflatedMethod", ves_icall_RuntimeType_GetCorrespondingInflatedMethod
)
875 HANDLES(RT_3
, "GetEvents_native", ves_icall_RuntimeType_GetEvents_native
, GPtrArray_ptr
, 3, (MonoReflectionType
, char_ptr
, guint32
))
876 HANDLES(RT_5
, "GetFields_native", ves_icall_RuntimeType_GetFields_native
, GPtrArray_ptr
, 4, (MonoReflectionType
, char_ptr
, guint32
, guint32
))
877 HANDLES(RT_6
, "GetGenericArgumentsInternal", ves_icall_RuntimeType_GetGenericArguments
, MonoArray
, 2, (MonoReflectionType
, MonoBoolean
))
878 HANDLES(RT_9
, "GetGenericParameterPosition", ves_icall_RuntimeType_GetGenericParameterPosition
, gint32
, 1, (MonoReflectionType
))
879 HANDLES(RT_10
, "GetInterfaceMapData", ves_icall_RuntimeType_GetInterfaceMapData
, void, 4, (MonoReflectionType
, MonoReflectionType
, MonoArrayOut
, MonoArrayOut
))
880 HANDLES(RT_11
, "GetInterfaces", ves_icall_RuntimeType_GetInterfaces
, MonoArray
, 1, (MonoReflectionType
))
881 HANDLES(RT_12
, "GetMethodsByName_native", ves_icall_RuntimeType_GetMethodsByName_native
, GPtrArray_ptr
, 4, (MonoReflectionType
, const_char_ptr
, guint32
, guint32
))
882 HANDLES(RT_13
, "GetNestedTypes_native", ves_icall_RuntimeType_GetNestedTypes_native
, GPtrArray_ptr
, 4, (MonoReflectionType
, char_ptr
, guint32
, guint32
))
883 HANDLES(RT_14
, "GetPacking", ves_icall_RuntimeType_GetPacking
, void, 3, (MonoReflectionType
, guint32_ref
, guint32_ref
))
884 HANDLES(RT_15
, "GetPropertiesByName_native", ves_icall_RuntimeType_GetPropertiesByName_native
, GPtrArray_ptr
, 4, (MonoReflectionType
, char_ptr
, guint32
, guint32
))
885 HANDLES(RT_16
, "GetTypeCodeImplInternal", ves_icall_type_GetTypeCodeInternal
, guint32
, 1, (MonoReflectionType
))
886 HANDLES(RT_28
, "IsTypeExportedToWindowsRuntime", ves_icall_System_RuntimeType_IsTypeExportedToWindowsRuntime
, MonoBoolean
, 0, ())
887 HANDLES(RT_29
, "IsWindowsRuntimeObjectType", ves_icall_System_RuntimeType_IsWindowsRuntimeObjectType
, MonoBoolean
, 0, ())
888 HANDLES(RT_17
, "MakeGenericType", ves_icall_RuntimeType_MakeGenericType
, MonoReflectionType
, 2, (MonoReflectionType
, MonoArray
))
889 HANDLES(RT_18
, "MakePointerType", ves_icall_RuntimeType_MakePointerType
, MonoReflectionType
, 1, (MonoReflectionType
))
890 HANDLES(RT_19
, "getFullName", ves_icall_System_RuntimeType_getFullName
, MonoString
, 3, (MonoReflectionType
, MonoBoolean
, MonoBoolean
))
891 HANDLES(RT_21
, "get_DeclaringMethod", ves_icall_RuntimeType_get_DeclaringMethod
, MonoReflectionMethod
, 1, (MonoReflectionType
))
892 HANDLES(RT_22
, "get_DeclaringType", ves_icall_RuntimeType_get_DeclaringType
, MonoReflectionType
, 1, (MonoReflectionType
))
893 HANDLES(RT_23
, "get_Name", ves_icall_RuntimeType_get_Name
, MonoString
, 1, (MonoReflectionType
))
894 HANDLES(RT_24
, "get_Namespace", ves_icall_RuntimeType_get_Namespace
, MonoString
, 1, (MonoReflectionType
))
895 HANDLES(RT_25
, "get_core_clr_security_level", ves_icall_RuntimeType_get_core_clr_security_level
, int, 1, (MonoReflectionType
))
896 HANDLES(RT_26
, "make_array_type", ves_icall_RuntimeType_make_array_type
, MonoReflectionType
, 2, (MonoReflectionType
, int))
897 HANDLES(RT_27
, "make_byref_type", ves_icall_RuntimeType_make_byref_type
, MonoReflectionType
, 1, (MonoReflectionType
))
899 ICALL_TYPE(RTH
, "System.RuntimeTypeHandle", RTH_1
)
900 HANDLES(RTH_1
, "GetArrayRank", ves_icall_RuntimeTypeHandle_GetArrayRank
, gint32
, 1, (MonoReflectionType
))
901 HANDLES(RTH_2
, "GetAssembly", ves_icall_RuntimeTypeHandle_GetAssembly
, MonoReflectionAssembly
, 1, (MonoReflectionType
))
902 HANDLES(RTH_3
, "GetAttributes", ves_icall_RuntimeTypeHandle_GetAttributes
, guint32
, 1, (MonoReflectionType
))
903 HANDLES(RTH_4
, "GetBaseType", ves_icall_RuntimeTypeHandle_GetBaseType
, MonoReflectionType
, 1, (MonoReflectionType
))
904 HANDLES(RTH_4a
, "GetCorElementType", ves_icall_RuntimeTypeHandle_GetCorElementType
, guint32
, 1, (MonoReflectionType
))
905 HANDLES(RTH_5
, "GetElementType", ves_icall_RuntimeTypeHandle_GetElementType
, MonoReflectionType
, 1, (MonoReflectionType
))
906 HANDLES(RTH_19
, "GetGenericParameterInfo", ves_icall_RuntimeTypeHandle_GetGenericParameterInfo
, MonoGenericParamInfo_ptr
, 1, (MonoReflectionType
))
907 HANDLES(RTH_6
, "GetGenericTypeDefinition_impl", ves_icall_RuntimeTypeHandle_GetGenericTypeDefinition_impl
, MonoReflectionType
, 1, (MonoReflectionType
))
908 HANDLES_REUSE_WRAPPER(RTH_7
, "GetMetadataToken", ves_icall_reflection_get_token
)
909 HANDLES(RTH_8
, "GetModule", ves_icall_RuntimeTypeHandle_GetModule
, MonoReflectionModule
, 1, (MonoReflectionType
))
910 HANDLES(RTH_9
, "HasInstantiation", ves_icall_RuntimeTypeHandle_HasInstantiation
, MonoBoolean
, 1, (MonoReflectionType
))
911 HANDLES(RTH_20
, "HasReferences", ves_icall_RuntimeTypeHandle_HasReferences
, MonoBoolean
, 1, (MonoReflectionType
))
912 HANDLES(RTH_21
, "IsByRefLike", ves_icall_RuntimeTypeHandle_IsByRefLike
, MonoBoolean
, 1, (MonoReflectionType
))
913 HANDLES(RTH_12
, "IsComObject", ves_icall_RuntimeTypeHandle_IsComObject
, MonoBoolean
, 1, (MonoReflectionType
))
914 HANDLES(RTH_13
, "IsGenericTypeDefinition", ves_icall_RuntimeTypeHandle_IsGenericTypeDefinition
, MonoBoolean
, 1, (MonoReflectionType
))
915 HANDLES(RTH_14
, "IsGenericVariable", ves_icall_RuntimeTypeHandle_IsGenericVariable
, MonoBoolean
, 1, (MonoReflectionType
))
916 HANDLES(RTH_15
, "IsInstanceOfType", ves_icall_RuntimeTypeHandle_IsInstanceOfType
, guint32
, 2, (MonoReflectionType
, MonoObject
))
917 //HANDLES(RTH_17a, "is_subclass_of", ves_icall_RuntimeTypeHandle_is_subclass_of, MonoBoolean, 2, (MonoType_ptr, MonoType_ptr))
918 HANDLES(RTH_17a
, "internal_from_name", ves_icall_System_RuntimeTypeHandle_internal_from_name
, MonoReflectionType
, 6, (MonoString
, MonoStackCrawlMark_ptr
, MonoReflectionAssembly
, MonoBoolean
, MonoBoolean
, MonoBoolean
))
919 NOHANDLES(ICALL(RTH_17b
, "is_subclass_of", ves_icall_RuntimeTypeHandle_is_subclass_of
))
920 HANDLES(RTH_18
, "type_is_assignable_from", ves_icall_RuntimeTypeHandle_type_is_assignable_from
, guint32
, 2, (MonoReflectionType
, MonoReflectionType
))
922 ICALL_TYPE(RNG
, "System.Security.Cryptography.RNGCryptoServiceProvider", RNG_1
)
923 HANDLES(RNG_1
, "RngClose", ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_RngClose
, void, 1, (gpointer
))
924 HANDLES(RNG_2
, "RngGetBytes", ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_RngGetBytes
, gpointer
, 3, (gpointer
, guchar_ptr
, gssize
))
925 HANDLES(RNG_3
, "RngInitialize", ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_RngInitialize
, gpointer
, 2, (const_guchar_ptr
, gssize
))
926 HANDLES(RNG_4
, "RngOpen", ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_RngOpen
, MonoBoolean
, 0, ())
928 ICALL_TYPE(EVID
, "System.Security.Policy.Evidence", EVID_1
)
929 HANDLES(EVID_1
, "IsAuthenticodePresent", ves_icall_System_Security_Policy_Evidence_IsAuthenticodePresent
, MonoBoolean
, 1, (MonoReflectionAssembly
))
931 ICALL_TYPE(WINID
, "System.Security.Principal.WindowsIdentity", WINID_1
)
932 HANDLES(WINID_1
, "GetCurrentToken", ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken
, gpointer
, 0, ())
933 HANDLES(WINID_2
, "GetTokenName", ves_icall_System_Security_Principal_WindowsIdentity_GetTokenName
, MonoString
, 1, (gpointer
))
934 HANDLES(WINID_3
, "GetUserToken", ves_icall_System_Security_Principal_WindowsIdentity_GetUserToken
, gpointer
, 1, (MonoString
))
935 HANDLES(WINID_4
, "_GetRoles", ves_icall_System_Security_Principal_WindowsIdentity_GetRoles
, MonoArray
, 1, (gpointer
))
937 ICALL_TYPE(WINIMP
, "System.Security.Principal.WindowsImpersonationContext", WINIMP_1
)
938 HANDLES(WINIMP_1
, "CloseToken", ves_icall_System_Security_Principal_WindowsImpersonationContext_CloseToken
, MonoBoolean
, 1, (gpointer
))
939 HANDLES(WINIMP_2
, "DuplicateToken", ves_icall_System_Security_Principal_WindowsImpersonationContext_DuplicateToken
, gpointer
, 1, (gpointer
))
940 HANDLES(WINIMP_3
, "RevertToSelf", ves_icall_System_Security_Principal_WindowsImpersonationContext_RevertToSelf
, MonoBoolean
, 0, ())
941 HANDLES(WINIMP_4
, "SetCurrentToken", ves_icall_System_Security_Principal_WindowsImpersonationContext_SetCurrentToken
, MonoBoolean
, 1, (gpointer
))
943 ICALL_TYPE(WINPRIN
, "System.Security.Principal.WindowsPrincipal", WINPRIN_1
)
944 HANDLES(WINPRIN_1
, "IsMemberOfGroupId", ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupId
, MonoBoolean
, 2, (gpointer
, gpointer
))
945 HANDLES(WINPRIN_2
, "IsMemberOfGroupName", ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupName
, MonoBoolean
, 2, (gpointer
, const_char_ptr
))
947 ICALL_TYPE(SECSTRING
, "System.Security.SecureString", SECSTRING_1
)
948 HANDLES(SECSTRING_1
, "DecryptInternal", ves_icall_System_Security_SecureString_DecryptInternal
, void, 2, (MonoArray
, MonoObject
))
949 HANDLES(SECSTRING_2
, "EncryptInternal", ves_icall_System_Security_SecureString_EncryptInternal
, void, 2, (MonoArray
, MonoObject
))
951 ICALL_TYPE(SECMAN
, "System.Security.SecurityManager", SECMAN_1
)
952 NOHANDLES(ICALL(SECMAN_1
, "get_RequiresElevatedPermissions", mono_security_core_clr_require_elevated_permissions
))
953 NOHANDLES(ICALL(SECMAN_2
, "get_SecurityEnabled", ves_icall_System_Security_SecurityManager_get_SecurityEnabled
))
954 NOHANDLES(ICALL(SECMAN_3
, "set_SecurityEnabled", ves_icall_System_Security_SecurityManager_set_SecurityEnabled
))
956 ICALL_TYPE(STRING
, "System.String", STRING_1
)
957 NOHANDLES(ICALL(STRING_1
, ".ctor(System.ReadOnlySpan`1<char>)", ves_icall_System_String_ctor_RedirectToCreateString
))
958 NOHANDLES(ICALL(STRING_1a
, ".ctor(char*)", ves_icall_System_String_ctor_RedirectToCreateString
))
959 NOHANDLES(ICALL(STRING_2
, ".ctor(char*,int,int)", ves_icall_System_String_ctor_RedirectToCreateString
))
960 NOHANDLES(ICALL(STRING_3
, ".ctor(char,int)", ves_icall_System_String_ctor_RedirectToCreateString
))
961 NOHANDLES(ICALL(STRING_4
, ".ctor(char[])", ves_icall_System_String_ctor_RedirectToCreateString
))
962 NOHANDLES(ICALL(STRING_5
, ".ctor(char[],int,int)", ves_icall_System_String_ctor_RedirectToCreateString
))
963 NOHANDLES(ICALL(STRING_6
, ".ctor(sbyte*)", ves_icall_System_String_ctor_RedirectToCreateString
))
964 NOHANDLES(ICALL(STRING_7
, ".ctor(sbyte*,int,int)", ves_icall_System_String_ctor_RedirectToCreateString
))
965 NOHANDLES(ICALL(STRING_8
, ".ctor(sbyte*,int,int,System.Text.Encoding)", ves_icall_System_String_ctor_RedirectToCreateString
))
966 HANDLES(STRING_9
, "FastAllocateString", ves_icall_System_String_InternalAllocateStr
, MonoString
, 1, (gint32
))
967 HANDLES(STRING_10
, "InternalIntern", ves_icall_System_String_InternalIntern
, MonoString
, 1, (MonoString
))
968 HANDLES(STRING_11
, "InternalIsInterned", ves_icall_System_String_InternalIsInterned
, MonoString
, 1, (MonoString
))
970 ICALL_TYPE(TENC
, "System.Text.EncodingHelper", TENC_1
)
971 HANDLES(TENC_1
, "InternalCodePage", ves_icall_System_Text_EncodingHelper_InternalCodePage
, MonoString
, 1, (gint32_ref
))
973 ICALL_TYPE(UNORM
, "System.Text.Normalization", UNORM_1
)
974 HANDLES(UNORM_1
, "load_normalization_resource", ves_icall_System_Text_Normalization_load_normalization_resource
, void, 6, (guint8_ptr_ref
, guint8_ptr_ref
, guint8_ptr_ref
, guint8_ptr_ref
, guint8_ptr_ref
, guint8_ptr_ref
))
976 ICALL_TYPE(ILOCK
, "System.Threading.Interlocked", ILOCK_1
)
977 NOHANDLES(ICALL(ILOCK_1
, "Add(int&,int)", ves_icall_System_Threading_Interlocked_Add_Int
))
978 NOHANDLES(ICALL(ILOCK_2
, "Add(long&,long)", ves_icall_System_Threading_Interlocked_Add_Long
))
979 ICALL(ILOCK_3
, "CompareExchange(T&,T,T)", ves_icall_System_Threading_Interlocked_CompareExchange_T
)
980 NOHANDLES(ICALL(ILOCK_4
, "CompareExchange(double&,double,double)", ves_icall_System_Threading_Interlocked_CompareExchange_Double
))
981 NOHANDLES(ICALL(ILOCK_5
, "CompareExchange(int&,int,int)", ves_icall_System_Threading_Interlocked_CompareExchange_Int
))
982 NOHANDLES(ICALL(ILOCK_6
, "CompareExchange(int&,int,int,bool&)", ves_icall_System_Threading_Interlocked_CompareExchange_Int_Success
))
983 NOHANDLES(ICALL(ILOCK_7
, "CompareExchange(intptr&,intptr,intptr)", ves_icall_System_Threading_Interlocked_CompareExchange_IntPtr
))
984 NOHANDLES(ICALL(ILOCK_8
, "CompareExchange(long&,long,long)", ves_icall_System_Threading_Interlocked_CompareExchange_Long
))
985 ICALL(ILOCK_9
, "CompareExchange(object&,object,object)", ves_icall_System_Threading_Interlocked_CompareExchange_Object
)
986 NOHANDLES(ICALL(ILOCK_10
, "CompareExchange(single&,single,single)", ves_icall_System_Threading_Interlocked_CompareExchange_Single
))
987 NOHANDLES(ICALL(ILOCK_11
, "Decrement(int&)", ves_icall_System_Threading_Interlocked_Decrement_Int
))
988 NOHANDLES(ICALL(ILOCK_12
, "Decrement(long&)", ves_icall_System_Threading_Interlocked_Decrement_Long
))
989 ICALL(ILOCK_13
, "Exchange(T&,T)", ves_icall_System_Threading_Interlocked_Exchange_T
)
990 NOHANDLES(ICALL(ILOCK_14
, "Exchange(double&,double)", ves_icall_System_Threading_Interlocked_Exchange_Double
))
991 NOHANDLES(ICALL(ILOCK_15
, "Exchange(int&,int)", ves_icall_System_Threading_Interlocked_Exchange_Int
))
992 NOHANDLES(ICALL(ILOCK_16
, "Exchange(intptr&,intptr)", ves_icall_System_Threading_Interlocked_Exchange_IntPtr
))
993 NOHANDLES(ICALL(ILOCK_17
, "Exchange(long&,long)", ves_icall_System_Threading_Interlocked_Exchange_Long
))
994 ICALL(ILOCK_18
, "Exchange(object&,object)", ves_icall_System_Threading_Interlocked_Exchange_Object
)
995 NOHANDLES(ICALL(ILOCK_19
, "Exchange(single&,single)", ves_icall_System_Threading_Interlocked_Exchange_Single
))
996 NOHANDLES(ICALL(ILOCK_20
, "Increment(int&)", ves_icall_System_Threading_Interlocked_Increment_Int
))
997 NOHANDLES(ICALL(ILOCK_21
, "Increment(long&)", ves_icall_System_Threading_Interlocked_Increment_Long
))
998 NOHANDLES(ICALL(ILOCK_22
, "MemoryBarrierProcessWide", ves_icall_System_Threading_Interlocked_MemoryBarrierProcessWide
))
999 NOHANDLES(ICALL(ILOCK_23
, "Read(long&)", ves_icall_System_Threading_Interlocked_Read_Long
))
1001 ICALL_TYPE(ITHREAD
, "System.Threading.InternalThread", ITHREAD_1
)
1002 HANDLES(ITHREAD_1
, "Thread_free_internal", ves_icall_System_Threading_InternalThread_Thread_free_internal
, void, 1, (MonoInternalThread
))
1004 ICALL_TYPE(MONIT
, "System.Threading.Monitor", MONIT_8
)
1005 HANDLES(MONIT_8
, "Enter", ves_icall_System_Threading_Monitor_Monitor_Enter
, void, 1, (MonoObject
))
1006 HANDLES(MONIT_1
, "Exit", mono_monitor_exit_icall
, void, 1, (MonoObject
))
1007 HANDLES(MONIT_2
, "Monitor_pulse", ves_icall_System_Threading_Monitor_Monitor_pulse
, void, 1, (MonoObject
))
1008 HANDLES(MONIT_3
, "Monitor_pulse_all", ves_icall_System_Threading_Monitor_Monitor_pulse_all
, void, 1, (MonoObject
))
1009 HANDLES(MONIT_4
, "Monitor_test_owner", ves_icall_System_Threading_Monitor_Monitor_test_owner
, MonoBoolean
, 1, (MonoObject
))
1010 HANDLES(MONIT_5
, "Monitor_test_synchronised", ves_icall_System_Threading_Monitor_Monitor_test_synchronised
, MonoBoolean
, 1, (MonoObject
))
1011 HANDLES(MONIT_7
, "Monitor_wait", ves_icall_System_Threading_Monitor_Monitor_wait
, MonoBoolean
, 2, (MonoObject
, guint32
))
1012 HANDLES(MONIT_9
, "try_enter_with_atomic_var", ves_icall_System_Threading_Monitor_Monitor_try_enter_with_atomic_var
, void, 3, (MonoObject
, guint32
, MonoBoolean_ref
))
1014 ICALL_TYPE(MUTEX
, "System.Threading.Mutex", MUTEX_1
)
1015 HANDLES(MUTEX_1
, "CreateMutex_icall", ves_icall_System_Threading_Mutex_CreateMutex_icall
, gpointer
, 4, (MonoBoolean
, const_gunichar2_ptr
, gint32
, MonoBoolean_ref
))
1016 HANDLES(MUTEX_2
, "OpenMutex_icall", ves_icall_System_Threading_Mutex_OpenMutex_icall
, gpointer
, 4, (const_gunichar2_ptr
, gint32
, gint32
, gint32_ref
))
1017 NOHANDLES(ICALL(MUTEX_3
, "ReleaseMutex_internal", ves_icall_System_Threading_Mutex_ReleaseMutex_internal
))
1019 ICALL_TYPE(NATIVEC
, "System.Threading.NativeEventCalls", NATIVEC_1
)
1020 NOHANDLES(ICALL(NATIVEC_1
, "CloseEvent_internal", ves_icall_System_Threading_Events_CloseEvent_internal
))
1021 HANDLES(NATIVEC_2
, "CreateEvent_icall", ves_icall_System_Threading_Events_CreateEvent_icall
, gpointer
, 5, (MonoBoolean
, MonoBoolean
, const_gunichar2_ptr
, gint32
, gint32_ref
))
1022 HANDLES(NATIVEC_3
, "OpenEvent_icall", ves_icall_System_Threading_Events_OpenEvent_icall
, gpointer
, 4, (const_gunichar2_ptr
, gint32
, gint32
, gint32_ref
))
1023 NOHANDLES(ICALL(NATIVEC_4
, "ResetEvent_internal", ves_icall_System_Threading_Events_ResetEvent_internal
))
1024 NOHANDLES(ICALL(NATIVEC_5
, "SetEvent_internal", ves_icall_System_Threading_Events_SetEvent_internal
))
1026 ICALL_TYPE(SEMA
, "System.Threading.Semaphore", SEMA_1
)
1027 HANDLES(SEMA_1
, "CreateSemaphore_icall", ves_icall_System_Threading_Semaphore_CreateSemaphore_icall
, gpointer
, 5, (gint32
, gint32
, const_gunichar2_ptr
, gint32
, gint32_ptr
))
1028 HANDLES(SEMA_2
, "OpenSemaphore_icall", ves_icall_System_Threading_Semaphore_OpenSemaphore_icall
, gpointer
, 4, (const_gunichar2_ptr
, gint32
, gint32
, gint32_ptr
))
1029 HANDLES(SEMA_3
, "ReleaseSemaphore_internal", ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal
, MonoBoolean
, 3, (gpointer
, gint32
, gint32_ref
))
1031 ICALL_TYPE(THREAD
, "System.Threading.Thread", THREAD_1
)
1032 HANDLES(THREAD_1
, "Abort_internal(System.Threading.InternalThread,object)", ves_icall_System_Threading_Thread_Abort
, void, 2, (MonoInternalThread
, MonoObject
))
1033 HANDLES(THREAD_1a
, "ByteArrayToCurrentDomain(byte[])", ves_icall_System_Threading_Thread_ByteArrayToCurrentDomain
, MonoArray
, 1, (MonoArray
))
1034 HANDLES(THREAD_1b
, "ByteArrayToRootDomain(byte[])", ves_icall_System_Threading_Thread_ByteArrayToRootDomain
, MonoArray
, 1, (MonoArray
))
1035 HANDLES(THREAD_2
, "ClrState(System.Threading.InternalThread,System.Threading.ThreadState)", ves_icall_System_Threading_Thread_ClrState
, void, 2, (MonoInternalThread
, guint32
))
1036 HANDLES(THREAD_2a
, "ConstructInternalThread", ves_icall_System_Threading_Thread_ConstructInternalThread
, void, 1, (MonoThreadObject
))
1037 HANDLES(THREAD_55
, "GetAbortExceptionState", ves_icall_System_Threading_Thread_GetAbortExceptionState
, MonoObject
, 1, (MonoThreadObject
))
1038 HANDLES(THREAD_60
, "GetCurrentThread", ves_icall_System_Threading_Thread_GetCurrentThread
, MonoThreadObject
, 0, ())
1039 HANDLES(THREAD_7
, "GetDomainID", ves_icall_System_Threading_Thread_GetDomainID
, gint32
, 0, ())
1040 HANDLES(THREAD_8
, "GetName_internal(System.Threading.InternalThread)", ves_icall_System_Threading_Thread_GetName_internal
, MonoString
, 1, (MonoInternalThread
))
1041 HANDLES(THREAD_57
, "GetPriorityNative", ves_icall_System_Threading_Thread_GetPriority
, int, 1, (MonoThreadObject
))
1042 HANDLES(THREAD_59
, "GetStackTraces", ves_icall_System_Threading_Thread_GetStackTraces
, void, 2, (MonoArrayOut
, MonoArrayOut
))
1043 HANDLES(THREAD_11
, "GetState(System.Threading.InternalThread)", ves_icall_System_Threading_Thread_GetState
, guint32
, 1, (MonoInternalThread
))
1044 HANDLES(THREAD_53
, "InterruptInternal", ves_icall_System_Threading_Thread_Interrupt_internal
, void, 1, (MonoThreadObject
))
1045 HANDLES(THREAD_12
, "JoinInternal", ves_icall_System_Threading_Thread_Join_internal
, MonoBoolean
, 2, (MonoThreadObject
, int))
1046 NOHANDLES(ICALL(THREAD_13
, "MemoryBarrier", ves_icall_System_Threading_Thread_MemoryBarrier
))
1047 HANDLES(THREAD_14
, "ResetAbortNative", ves_icall_System_Threading_Thread_ResetAbort
, void, 1, (MonoThreadObject
))
1048 HANDLES(THREAD_15
, "ResumeInternal", ves_icall_System_Threading_Thread_Resume
, void, 1, (MonoThreadObject
))
1049 HANDLES(THREAD_18
, "SetName_icall", ves_icall_System_Threading_Thread_SetName_icall
, void, 3, (MonoInternalThread
, const_gunichar2_ptr
, gint32
))
1050 HANDLES(THREAD_58
, "SetPriorityNative", ves_icall_System_Threading_Thread_SetPriority
, void, 2, (MonoThreadObject
, int))
1051 HANDLES(THREAD_21
, "SetState(System.Threading.InternalThread,System.Threading.ThreadState)", ves_icall_System_Threading_Thread_SetState
, void, 2, (MonoInternalThread
, guint32
))
1052 HANDLES(THREAD_22
, "SleepInternal", ves_icall_System_Threading_Thread_Sleep_internal
, void, 1, (gint32
))
1053 HANDLES(THREAD_54
, "SpinWait_nop", ves_icall_System_Threading_Thread_SpinWait_nop
, void, 0, ())
1054 HANDLES(THREAD_23
, "SuspendInternal", ves_icall_System_Threading_Thread_Suspend
, void, 1, (MonoThreadObject
))
1055 // FIXME SystemMaxStackStize should be SystemMaxStackSize
1056 NOHANDLES(ICALL(THREAD_56
, "SystemMaxStackStize", ves_icall_System_Threading_Thread_SystemMaxStackSize
))
1057 HANDLES(THREAD_25
, "Thread_internal", ves_icall_System_Threading_Thread_Thread_internal
, MonoBoolean
, 2, (MonoThreadObject
, MonoObject
))
1058 NOHANDLES(ICALL(THREAD_26
, "VolatileRead(byte&)", ves_icall_System_Threading_Thread_VolatileRead1
))
1059 NOHANDLES(ICALL(THREAD_27
, "VolatileRead(double&)", ves_icall_System_Threading_Thread_VolatileReadDouble
))
1060 NOHANDLES(ICALL(THREAD_28
, "VolatileRead(int&)", ves_icall_System_Threading_Thread_VolatileRead4
))
1061 NOHANDLES(ICALL(THREAD_29
, "VolatileRead(int16&)", ves_icall_System_Threading_Thread_VolatileRead2
))
1062 NOHANDLES(ICALL(THREAD_30
, "VolatileRead(intptr&)", ves_icall_System_Threading_Thread_VolatileReadIntPtr
))
1063 NOHANDLES(ICALL(THREAD_31
, "VolatileRead(long&)", ves_icall_System_Threading_Thread_VolatileRead8
))
1064 NOHANDLES(ICALL(THREAD_32
, "VolatileRead(object&)", ves_icall_System_Threading_Thread_VolatileReadObject
))
1065 NOHANDLES(ICALL(THREAD_33
, "VolatileRead(sbyte&)", ves_icall_System_Threading_Thread_VolatileRead1
))
1066 NOHANDLES(ICALL(THREAD_34
, "VolatileRead(single&)", ves_icall_System_Threading_Thread_VolatileReadFloat
))
1067 NOHANDLES(ICALL(THREAD_35
, "VolatileRead(uint&)", ves_icall_System_Threading_Thread_VolatileRead4
))
1068 NOHANDLES(ICALL(THREAD_36
, "VolatileRead(uint16&)", ves_icall_System_Threading_Thread_VolatileRead2
))
1069 NOHANDLES(ICALL(THREAD_37
, "VolatileRead(uintptr&)", ves_icall_System_Threading_Thread_VolatileReadIntPtr
))
1070 NOHANDLES(ICALL(THREAD_38
, "VolatileRead(ulong&)", ves_icall_System_Threading_Thread_VolatileRead8
))
1071 NOHANDLES(ICALL(THREAD_39
, "VolatileWrite(byte&,byte)", ves_icall_System_Threading_Thread_VolatileWrite1
))
1072 NOHANDLES(ICALL(THREAD_40
, "VolatileWrite(double&,double)", ves_icall_System_Threading_Thread_VolatileWriteDouble
))
1073 NOHANDLES(ICALL(THREAD_41
, "VolatileWrite(int&,int)", ves_icall_System_Threading_Thread_VolatileWrite4
))
1074 NOHANDLES(ICALL(THREAD_42
, "VolatileWrite(int16&,int16)", ves_icall_System_Threading_Thread_VolatileWrite2
))
1075 NOHANDLES(ICALL(THREAD_43
, "VolatileWrite(intptr&,intptr)", ves_icall_System_Threading_Thread_VolatileWriteIntPtr
))
1076 NOHANDLES(ICALL(THREAD_44
, "VolatileWrite(long&,long)", ves_icall_System_Threading_Thread_VolatileWrite8
))
1077 NOHANDLES(ICALL(THREAD_45
, "VolatileWrite(object&,object)", ves_icall_System_Threading_Thread_VolatileWriteObject
))
1078 NOHANDLES(ICALL(THREAD_46
, "VolatileWrite(sbyte&,sbyte)", ves_icall_System_Threading_Thread_VolatileWrite1
))
1079 NOHANDLES(ICALL(THREAD_47
, "VolatileWrite(single&,single)", ves_icall_System_Threading_Thread_VolatileWriteFloat
))
1080 NOHANDLES(ICALL(THREAD_48
, "VolatileWrite(uint&,uint)", ves_icall_System_Threading_Thread_VolatileWrite4
))
1081 NOHANDLES(ICALL(THREAD_49
, "VolatileWrite(uint16&,uint16)", ves_icall_System_Threading_Thread_VolatileWrite2
))
1082 NOHANDLES(ICALL(THREAD_50
, "VolatileWrite(uintptr&,uintptr)", ves_icall_System_Threading_Thread_VolatileWriteIntPtr
))
1083 NOHANDLES(ICALL(THREAD_51
, "VolatileWrite(ulong&,ulong)", ves_icall_System_Threading_Thread_VolatileWrite8
))
1084 NOHANDLES(ICALL(THREAD_9
, "YieldInternal", ves_icall_System_Threading_Thread_YieldInternal
))
1086 ICALL_TYPE(THREADP
, "System.Threading.ThreadPool", THREADP_2
)
1087 HANDLES(THREADP_2
, "GetAvailableThreadsNative", ves_icall_System_Threading_ThreadPool_GetAvailableThreadsNative
, void, 2, (gint32_ref
, gint32_ref
))
1088 HANDLES(THREADP_3
, "GetMaxThreadsNative", ves_icall_System_Threading_ThreadPool_GetMaxThreadsNative
, void, 2, (gint32_ref
, gint32_ref
))
1089 HANDLES(THREADP_4
, "GetMinThreadsNative", ves_icall_System_Threading_ThreadPool_GetMinThreadsNative
, void, 2, (gint32_ref
, gint32_ref
))
1090 HANDLES(THREADP_5
, "InitializeVMTp", ves_icall_System_Threading_ThreadPool_InitializeVMTp
, void, 1, (MonoBoolean_ref
))
1091 HANDLES(THREADP_7
, "NotifyWorkItemComplete", ves_icall_System_Threading_ThreadPool_NotifyWorkItemComplete
, MonoBoolean
, 0, ())
1092 HANDLES(THREADP_8
, "NotifyWorkItemProgressNative", ves_icall_System_Threading_ThreadPool_NotifyWorkItemProgressNative
, void, 0, ())
1093 HANDLES(THREADP_8m
, "NotifyWorkItemQueued", ves_icall_System_Threading_ThreadPool_NotifyWorkItemQueued
, void, 0, ())
1094 HANDLES(THREADP_11
, "ReportThreadStatus", ves_icall_System_Threading_ThreadPool_ReportThreadStatus
, void, 1, (MonoBoolean
))
1095 HANDLES(THREADP_12
, "RequestWorkerThread", ves_icall_System_Threading_ThreadPool_RequestWorkerThread
, MonoBoolean
, 0, ())
1096 HANDLES(THREADP_13
, "SetMaxThreadsNative", ves_icall_System_Threading_ThreadPool_SetMaxThreadsNative
, MonoBoolean
, 2, (gint32
, gint32
))
1097 HANDLES(THREADP_14
, "SetMinThreadsNative", ves_icall_System_Threading_ThreadPool_SetMinThreadsNative
, MonoBoolean
, 2, (gint32
, gint32
))
1099 ICALL_TYPE(TTIMER
, "System.Threading.Timer", TTIMER_1
)
1100 NOHANDLES(ICALL(TTIMER_1
, "GetTimeMonotonic", ves_icall_System_Threading_Timer_GetTimeMonotonic
))
1102 ICALL_TYPE(VOLATILE
, "System.Threading.Volatile", VOLATILE_1
)
1103 NOHANDLES(ICALL(VOLATILE_1
, "Read(double&)", ves_icall_System_Threading_Volatile_ReadDouble
))
1104 NOHANDLES(ICALL(VOLATILE_2
, "Read(long&)", ves_icall_System_Threading_Volatile_Read8
))
1105 NOHANDLES(ICALL(VOLATILE_3
, "Read(ulong&)", ves_icall_System_Threading_Volatile_ReadU8
))
1106 NOHANDLES(ICALL(VOLATILE_4
, "Write(double&,double)", ves_icall_System_Threading_Volatile_WriteDouble
))
1107 NOHANDLES(ICALL(VOLATILE_5
, "Write(long&,long)", ves_icall_System_Threading_Volatile_Write8
))
1108 NOHANDLES(ICALL(VOLATILE_6
, "Write(ulong&,ulong)", ves_icall_System_Threading_Volatile_WriteU8
))
1110 ICALL_TYPE(WAITH
, "System.Threading.WaitHandle", WAITH_1
)
1111 HANDLES(WAITH_1
, "SignalAndWait_Internal", ves_icall_System_Threading_WaitHandle_SignalAndWait_Internal
, gint32
, 3, (gpointer
, gpointer
, gint32
))
1112 HANDLES(WAITH_2
, "Wait_internal", ves_icall_System_Threading_WaitHandle_Wait_internal
, gint32
, 4, (gpointer_ptr
, gint32
, MonoBoolean
, gint32
))
1114 ICALL_TYPE(TYPE
, "System.Type", TYPE_1
)
1115 HANDLES(TYPE_1
, "internal_from_handle", ves_icall_System_Type_internal_from_handle
, MonoReflectionType
, 1, (MonoType_ref
))
1117 ICALL_TYPE(TYPEDR
, "System.TypedReference", TYPEDR_1
)
1118 HANDLES(TYPEDR_1
, "InternalMakeTypedReference", ves_icall_System_TypedReference_InternalMakeTypedReference
, void, 4, (MonoTypedRef_ptr
, MonoObject
, MonoArray
, MonoReflectionType
))
1119 HANDLES(TYPEDR_2
, "InternalToObject", ves_icall_System_TypedReference_ToObject
, MonoObject
, 1, (MonoTypedRef_ptr
))
1121 ICALL_TYPE(VALUET
, "System.ValueType", VALUET_1
)
1122 HANDLES(VALUET_1
, "InternalEquals", ves_icall_System_ValueType_Equals
, MonoBoolean
, 3, (MonoObject
, MonoObject
, MonoArrayOut
))
1123 HANDLES(VALUET_2
, "InternalGetHashCode", ves_icall_System_ValueType_InternalGetHashCode
, gint32
, 2, (MonoObject
, MonoArrayOut
))
1125 ICALL_TYPE(WEBIC
, "System.Web.Util.ICalls", WEBIC_1
)
1126 HANDLES_REUSE_WRAPPER(WEBIC_1
, "GetMachineConfigPath", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path
, MonoString
, 0, ())
1127 HANDLES(WEBIC_2
, "GetMachineInstallDirectory", ves_icall_System_Web_Util_ICalls_get_machine_install_dir
, MonoString
, 0, ())
1128 HANDLES(WEBIC_3
, "GetUnmanagedResourcesPtr", ves_icall_get_resources_ptr
, MonoBoolean
, 3, (MonoReflectionAssembly
, gpointer_ref
, gint32_ref
))
1131 ICALL_TYPE(COMOBJ
, "System.__ComObject", COMOBJ_1
)
1132 HANDLES(COMOBJ_1
, "CreateRCW", ves_icall_System_ComObject_CreateRCW
, MonoObject
, 1, (MonoReflectionType
))
1133 HANDLES(COMOBJ_2
, "GetInterfaceInternal", ves_icall_System_ComObject_GetInterfaceInternal
, gpointer
, 3, (MonoComObject
, MonoReflectionType
, MonoBoolean
))
1134 HANDLES(COMOBJ_3
, "ReleaseInterfaces", ves_icall_System_ComObject_ReleaseInterfaces
, void, 1, (MonoComObject
))
1139 // This is similar to HANDLES() but is for icalls passed to register_jit_icall.
1140 // There is no metadata for these. No signature matching.
1141 // Presently their wrappers are less efficient, but hopefully that can be fixed,
1142 // by making a direct call to them, inserting the LMF below them (possibly,
1143 // providing it to them via a function pointer, if it cannot be done in C),
1144 // and of course using managed-style coop handles within them.
1145 // Alternately, ilgen.
1147 // This is not just for register_icall, for any time coop wrappers are needed,
1148 // that there is no metadata for. For example embedding API.
1150 // helper for the managed alloc support
1151 MONO_HANDLE_REGISTER_ICALL (ves_icall_string_alloc
, MonoString
, 1, (int))
1153 // Windows: Allocates with CoTaskMemAlloc.
1154 // Unix: Allocates with g_malloc.
1155 // Either way: Free with mono_marshal_free (Windows:CoTaskMemFree, Unix:g_free).
1156 MONO_HANDLE_REGISTER_ICALL (mono_string_to_utf8str
, gpointer
, 1, (MonoString
))
1158 MONO_HANDLE_REGISTER_ICALL (mono_array_to_byte_byvalarray
, void, 3, (gpointer
, MonoArray
, guint32
))
1159 MONO_HANDLE_REGISTER_ICALL (mono_array_to_lparray
, gpointer
, 1, (MonoArray
))
1160 MONO_HANDLE_REGISTER_ICALL (mono_array_to_savearray
, gpointer
, 1, (MonoArray
))
1161 MONO_HANDLE_REGISTER_ICALL (mono_byvalarray_to_byte_array
, void, 3, (MonoArray
, const_char_ptr
, guint32
))
1162 MONO_HANDLE_REGISTER_ICALL (mono_delegate_to_ftnptr
, gpointer
, 1, (MonoDelegate
))
1163 MONO_HANDLE_REGISTER_ICALL (mono_free_lparray
, void, 2, (MonoArray
, gpointer_ptr
))
1164 MONO_HANDLE_REGISTER_ICALL (mono_ftnptr_to_delegate
, MonoDelegate
, 2, (MonoClass_ptr
, gpointer
))
1165 MONO_HANDLE_REGISTER_ICALL (mono_marshal_asany
, gpointer
, 3, (MonoObject
, MonoMarshalNative
, int))
1166 MONO_HANDLE_REGISTER_ICALL (mono_marshal_free_asany
, void, 4, (MonoObject
, gpointer
, MonoMarshalNative
, int))
1167 MONO_HANDLE_REGISTER_ICALL (mono_marshal_string_to_utf16_copy
, gunichar2_ptr
, 1, (MonoString
))
1168 MONO_HANDLE_REGISTER_ICALL (mono_object_isinst_icall
, MonoObject
, 2, (MonoObject
, MonoClass_ptr
))
1169 MONO_HANDLE_REGISTER_ICALL (mono_string_builder_to_utf16
, gunichar2_ptr
, 1, (MonoStringBuilder
))
1170 MONO_HANDLE_REGISTER_ICALL (mono_string_builder_to_utf8
, char_ptr
, 1, (MonoStringBuilder
))
1171 MONO_HANDLE_REGISTER_ICALL (mono_string_from_bstr_icall
, MonoString
, 1, (mono_bstr_const
))
1172 MONO_HANDLE_REGISTER_ICALL (mono_string_from_byvalstr
, MonoString
, 2, (const_char_ptr
, int))
1173 MONO_HANDLE_REGISTER_ICALL (mono_string_from_byvalwstr
, MonoString
, 2, (const_gunichar2_ptr
, int))
1174 MONO_HANDLE_REGISTER_ICALL (mono_string_new_len_wrapper
, MonoString
, 2, (const_char_ptr
, guint
))
1175 MONO_HANDLE_REGISTER_ICALL (mono_string_new_wrapper_internal
, MonoString
, 1, (const_char_ptr
))
1176 MONO_HANDLE_REGISTER_ICALL (mono_string_to_ansibstr
, gpointer
, 1, (MonoString
))
1177 MONO_HANDLE_REGISTER_ICALL (mono_string_to_bstr
, mono_bstr
, 1, (MonoString
))
1178 MONO_HANDLE_REGISTER_ICALL (mono_string_to_byvalstr
, void, 3, (char_ptr
, MonoString
, int))
1179 MONO_HANDLE_REGISTER_ICALL (mono_string_to_byvalwstr
, void, 3, (gunichar2_ptr
, MonoString
, int))
1180 MONO_HANDLE_REGISTER_ICALL (mono_string_to_utf16_internal
, mono_unichar2_ptr
, 1, (MonoString
))
1181 MONO_HANDLE_REGISTER_ICALL (mono_string_to_utf32_internal
, mono_unichar4_ptr
, 1, (MonoString
)) // embedding API
1182 MONO_HANDLE_REGISTER_ICALL (mono_string_utf16_to_builder
, void, 2, (MonoStringBuilder
, const_gunichar2_ptr
))
1183 MONO_HANDLE_REGISTER_ICALL (mono_string_utf16_to_builder2
, MonoStringBuilder
, 1, (const_gunichar2_ptr
))
1184 MONO_HANDLE_REGISTER_ICALL (mono_string_utf8_to_builder
, void, 2, (MonoStringBuilder
, const_char_ptr
))
1185 MONO_HANDLE_REGISTER_ICALL (mono_string_utf8_to_builder2
, MonoStringBuilder
, 1, (const_char_ptr
))
1186 MONO_HANDLE_REGISTER_ICALL (mono_type_from_handle
, MonoReflectionType
, 1, (MonoType_ptr
)) // called by icalls
1187 MONO_HANDLE_REGISTER_ICALL (ves_icall_marshal_alloc
, gpointer
, 1, (gsize
))
1188 MONO_HANDLE_REGISTER_ICALL (ves_icall_mono_marshal_xdomain_copy_value
, MonoObject
, 1, (MonoObject
))
1189 MONO_HANDLE_REGISTER_ICALL (ves_icall_mono_string_from_utf16
, MonoString
, 1, (const_gunichar2_ptr
))
1190 MONO_HANDLE_REGISTER_ICALL (ves_icall_mono_string_to_utf8
, char_ptr
, 1, (MonoString
))
1191 MONO_HANDLE_REGISTER_ICALL (ves_icall_string_new_wrapper
, MonoString
, 1, (const_char_ptr
))