54 instantiations of QCallModule
System.Private.CoreLib (54)
src\System\Reflection\Emit\RuntimeEventBuilder.cs (1)
55new QCallModule(ref module),
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (3)
40m_fieldTok = RuntimeTypeBuilder.DefineField(new QCallModule(ref module), 50RuntimeModuleBuilder.SetFieldRVAContent(new QCallModule(ref module), m_fieldTok, data, size); 136RuntimeTypeBuilder.SetFieldLayoutOffset(new QCallModule(ref module), m_fieldTok, iOffset);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (3)
599int token = RuntimeTypeBuilder.DefineMethod(new QCallModule(ref module), m_containingType.MetadataToken, m_strName, sigBytes, sigLength, Attributes); 606RuntimeTypeBuilder.SetMethodImpl(new QCallModule(ref module), token, m_dwMethodImplFlags); 661RuntimeTypeBuilder.SetMethodImpl(new QCallModule(ref module), MetadataToken, attributes);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (14)
112return GetMemberRef(new QCallModule(ref thisModule), new QCallModule(ref refedRuntimeModule), tr, defToken); 121return GetMemberRefFromSignature(new QCallModule(ref thisModule), tr, methodName, signature, length); 132int result = GetMemberRefOfMethodInfo(new QCallModule(ref thisModule), tr, ((IRuntimeMethodInfo)method).Value); 142int result = GetMemberRefOfMethodInfo(new QCallModule(ref thisModule), tr, ((IRuntimeMethodInfo)method).Value); 155return GetMemberRefOfFieldInfo(new QCallModule(ref thisModule), tkType, new QCallTypeHandle(ref declaringType), runtimeField.MetadataToken); 164return GetTokenFromTypeSpec(new QCallModule(ref thisModule), signature, length); 221return GetTypeRef(new QCallModule(ref thisModule), typeName, new QCallModule(ref refedRuntimeModule), tkResolution); 1097tk = RuntimeTypeBuilder.DefineMethodSpec(new QCallModule(ref thisModule), tk, sigBytes, sigLength); 1147return GetArrayMethodToken(new QCallModule(ref thisModule), 1254return GetStringConstant(new QCallModule(ref thisModule), stringConstant, stringConstant.Length); 1266return RuntimeTypeBuilder.GetTokenFromSig(new QCallModule(ref thisModule), sigBytes, sigLength); 1277return RuntimeTypeBuilder.GetTokenFromSig(new QCallModule(ref thisModule), localSigBytes, sigLength);
src\System\Reflection\Emit\RuntimeParameterBuilder.cs (1)
41new QCallModule(ref module),
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
76new QCallModule(ref module),
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (16)
94DefineCustomAttribute(new QCallModule(ref module), tkAssociate, tkConstructor, 269SetConstantValue(new QCallModule(ref module), tk, (int)corType, pData); 276SetConstantValue(new QCallModule(ref module), tk, (int)CorElementType.ELEMENT_TYPE_STRING, pString); 282SetConstantValue(new QCallModule(ref module), tk, (int)CorElementType.ELEMENT_TYPE_I8, &ticks); 297SetConstantValue(new QCallModule(ref module), tk, (int)CorElementType.ELEMENT_TYPE_CLASS, null); 452m_tdType = DefineType(new QCallModule(ref module), 458SetClassLayout(new QCallModule(ref module), m_tdType, m_iPackingSize, m_iTypeSize); 1074DefineMethodImpl(new QCallModule(ref module), m_tdType, tkBody, tkDecl); 1181SetPInvokeData(new QCallModule(ref module), 1407new QCallModule(ref module), 1444new QCallModule(ref module), 1529m_tdType = DefineGenericParam(new QCallModule(ref module), 1549SetParentType(new QCallModule(ref module), m_tdType, tkParent); 1620SetMethodIL(new QCallModule(ref module), meth.MetadataToken, meth.InitLocals, 1638TermCreateClass(new QCallModule(ref module), m_tdType, ObjectHandleOnStack.Create(ref cls)); 1699AddInterfaceImpl(new QCallModule(ref module), m_tdType, tkInterface);
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
1706new QCallModule(ref decoratedModule)) != Interop.BOOL.FALSE; 1880new QCallModule(ref module), 1912new QCallModule(ref module),
src\System\Reflection\RuntimeModule.cs (3)
411GetFullyQualifiedName(new QCallModule(ref thisAsLocal), new StringHandleOnStack(ref fullyQualifiedName)); 425GetTypes(new QCallModule(ref thisAsLocal), ObjectHandleOnStack.Create(ref types)); 488GetScopeName(new QCallModule(ref thisAsLocal), new StringHandleOnStack(ref scopeName));
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
194RunModuleConstructor(new QCallModule(ref rm));
src\System\RuntimeHandles.cs (8)
1785new QCallModule(ref module), 1799=> GetToken(new QCallModule(ref module)); 1846ResolveType(new QCallModule(ref module), typeToken, typeInstArgs, typeInstantiationContextHandles.Length, methodInstArgs, methodInstantiationContextHandles.Length, ObjectHandleOnStack.Create(ref type)); 1901return ResolveMethod(new QCallModule(ref module), methodToken, typeInstArgs, typeInstantiationContext.Length, methodInstArgs, methodInstantiationContext.Length); 1952ResolveField(new QCallModule(ref module), fieldToken, typeInstArgs, typeInstantiationContextHandles.Length, methodInstArgs, methodInstantiationContextHandles.Length, ObjectHandleOnStack.Create(ref field)); 1982GetModuleType(new QCallModule(ref module), ObjectHandleOnStack.Create(ref type)); 1993GetPEKind(new QCallModule(ref module), &lKind, &lMachine); 2003=> GetMDStreamVersion(new QCallModule(ref module));
116 references to QCallModule
System.Private.CoreLib (116)
LibraryImports.g.cs (69)
690private static partial int GetTypeRef(global::System.Runtime.CompilerServices.QCallModule module, string strFullName, global::System.Runtime.CompilerServices.QCallModule refedModule, int tkResolution) 702static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __strFullName_native, global::System.Runtime.CompilerServices.QCallModule __refedModule_native, int __tkResolution_native); 711private static extern partial int GetMemberRef(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.QCallModule refedModule, int tr, int defToken); 719private static partial int GetMemberRefFromSignature(global::System.Runtime.CompilerServices.QCallModule module, int tr, string methodName, byte[] signature, int length) 732static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tr_native, ushort* __methodName_native, byte* __signature_native, int __length_native); 741private static extern partial int GetMemberRefOfMethodInfo(global::System.Runtime.CompilerServices.QCallModule module, int tr, global::System.RuntimeMethodHandleInternal method); 749private static extern partial int GetMemberRefOfFieldInfo(global::System.Runtime.CompilerServices.QCallModule module, int tkType, global::System.Runtime.CompilerServices.QCallTypeHandle declaringType, int tkField); 757private static partial int GetTokenFromTypeSpec(global::System.Runtime.CompilerServices.QCallModule pModule, byte[] signature, int length) 769static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __pModule_native, byte* __signature_native, int __length_native); 778private static partial int GetArrayMethodToken(global::System.Runtime.CompilerServices.QCallModule module, int tkTypeSpec, string methodName, byte[] signature, int sigLength) 791static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkTypeSpec_native, ushort* __methodName_native, byte* __signature_native, int __sigLength_native); 800private static partial int GetStringConstant(global::System.Runtime.CompilerServices.QCallModule module, string str, int length) 812static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __str_native, int __length_native); 821internal static partial void SetFieldRVAContent(global::System.Runtime.CompilerServices.QCallModule module, int fdToken, byte[] data, int length) 831static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __fdToken_native, byte* __data_native, int __length_native); 840private static extern partial void SetParentType(global::System.Runtime.CompilerServices.QCallModule module, int tdTypeDef, int tkParent); 848private static extern partial void AddInterfaceImpl(global::System.Runtime.CompilerServices.QCallModule module, int tdTypeDef, int tkInterface); 856internal static partial int DefineMethod(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, byte[] signature, int sigLength, global::System.Reflection.MethodAttributes attributes) 869static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, ushort* __name_native, byte* __signature_native, int __sigLength_native, global::System.Reflection.MethodAttributes __attributes_native); 878internal static partial int DefineMethodSpec(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, byte[] signature, int sigLength) 890static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, byte* __signature_native, int __sigLength_native); 899internal static partial int DefineField(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, byte[] signature, int sigLength, global::System.Reflection.FieldAttributes attributes) 912static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, ushort* __name_native, byte* __signature_native, int __sigLength_native, global::System.Reflection.FieldAttributes __attributes_native); 921private static partial void SetMethodIL(global::System.Runtime.CompilerServices.QCallModule module, int tk, bool isInitLocals, byte[] body, int bodyLength, byte[] LocalSig, int sigLength, int maxStackSize, global::System.Reflection.Emit.ExceptionHandler[] exceptions, int numExceptions, int[] tokenFixups, int numTokenFixups) 937static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tk_native, int __isInitLocals_native, byte* __body_native, int __bodyLength_native, byte* __LocalSig_native, int __sigLength_native, int __maxStackSize_native, global::System.Reflection.Emit.ExceptionHandler* __exceptions_native, int __numExceptions_native, int* __tokenFixups_native, int __numTokenFixups_native); 946private static partial void DefineCustomAttribute(global::System.Runtime.CompilerServices.QCallModule module, int tkAssociate, int tkConstructor, global::System.ReadOnlySpan<byte> attr, int attrLength) 956static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkAssociate_native, int __tkConstructor_native, byte* __attr_native, int __attrLength_native); 965internal static partial int DefineProperty(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, global::System.Reflection.PropertyAttributes attributes, byte[] signature, int sigLength) 978static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, ushort* __name_native, global::System.Reflection.PropertyAttributes __attributes_native, byte* __signature_native, int __sigLength_native); 987internal static partial int DefineEvent(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, global::System.Reflection.EventAttributes attributes, int tkEventType) 999static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, ushort* __name_native, global::System.Reflection.EventAttributes __attributes_native, int __tkEventType_native); 1008internal static extern partial void DefineMethodSemantics(global::System.Runtime.CompilerServices.QCallModule module, int tkAssociation, global::System.Reflection.MethodSemanticsAttributes semantics, int tkMethod); 1016internal static extern partial void DefineMethodImpl(global::System.Runtime.CompilerServices.QCallModule module, int tkType, int tkBody, int tkDecl); 1024internal static extern partial void SetMethodImpl(global::System.Runtime.CompilerServices.QCallModule module, int tkMethod, global::System.Reflection.MethodImplAttributes MethodImplAttributes); 1032internal static partial int SetParamInfo(global::System.Runtime.CompilerServices.QCallModule module, int tkMethod, int iSequence, global::System.Reflection.ParameterAttributes iParamAttributes, string strParamName) 1044static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkMethod_native, int __iSequence_native, global::System.Reflection.ParameterAttributes __iParamAttributes_native, ushort* __strParamName_native); 1053internal static partial int GetTokenFromSig(global::System.Runtime.CompilerServices.QCallModule module, byte[] signature, int sigLength) 1065static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, byte* __signature_native, int __sigLength_native); 1074internal static extern partial void SetFieldLayoutOffset(global::System.Runtime.CompilerServices.QCallModule module, int fdToken, int iOffset); 1082internal static extern partial void SetClassLayout(global::System.Runtime.CompilerServices.QCallModule module, int tk, global::System.Reflection.Emit.PackingSize iPackingSize, int iTypeSize); 1090private static unsafe extern partial void SetConstantValue(global::System.Runtime.CompilerServices.QCallModule module, int tk, int corType, void* pValue); 1098private static partial void SetPInvokeData(global::System.Runtime.CompilerServices.QCallModule module, string DllName, string name, int token, int linkFlags) 1109static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __DllName_native, ushort* __name_native, int __token_native, int __linkFlags_native); 1118private static partial int DefineType(global::System.Runtime.CompilerServices.QCallModule module, string fullname, int tkParent, global::System.Reflection.TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens) 1131static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __fullname_native, int __tkParent_native, global::System.Reflection.TypeAttributes __attributes_native, int __tkEnclosingType_native, int* __interfaceTokens_native); 1140private static partial int DefineGenericParam(global::System.Runtime.CompilerServices.QCallModule module, string name, int tkParent, global::System.Reflection.GenericParameterAttributes attributes, int position, int[] constraints) 1153static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __name_native, int __tkParent_native, global::System.Reflection.GenericParameterAttributes __attributes_native, int __position_native, int* __constraints_native); 1162private static extern partial void TermCreateClass(global::System.Runtime.CompilerServices.QCallModule module, int tk, global::System.Runtime.CompilerServices.ObjectHandleOnStack type); 1681private static partial void CreateCustomAttributeInstance(global::System.Runtime.CompilerServices.QCallModule pModule, global::System.Runtime.CompilerServices.ObjectHandleOnStack type, global::System.Runtime.CompilerServices.ObjectHandleOnStack pCtor, ref nint ppBlob, nint pEndBlob, out int pcNamedArgs, global::System.Runtime.CompilerServices.ObjectHandleOnStack instance) 1693static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __pModule_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __type_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __pCtor_native, nint* __ppBlob_native, nint __pEndBlob_native, int* __pcNamedArgs_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __instance_native); 1702private static partial void CreatePropertyOrFieldData(global::System.Runtime.CompilerServices.QCallModule pModule, ref nint ppBlobStart, nint pBlobEnd, global::System.Runtime.CompilerServices.StringHandleOnStack name, out bool bIsProperty, global::System.Runtime.CompilerServices.ObjectHandleOnStack type, global::System.Runtime.CompilerServices.ObjectHandleOnStack value) 1716static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __pModule_native, nint* __ppBlobStart_native, nint __pBlobEnd_native, global::System.Runtime.CompilerServices.StringHandleOnStack __name_native, int* __bIsProperty_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __type_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __value_native); 1725private static extern partial void GetFullyQualifiedName(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.StringHandleOnStack retString); 1733private static extern partial void GetTypes(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.ObjectHandleOnStack retTypes); 1741private static extern partial void GetScopeName(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.StringHandleOnStack retString); 1848private static extern partial void RunModuleConstructor(global::System.Runtime.CompilerServices.QCallModule module); 2892internal static extern partial global::Interop.BOOL IsCAVisibleFromDecoratedType(global::System.Runtime.CompilerServices.QCallTypeHandle attrTypeHandle, global::System.RuntimeMethodHandleInternal attrCtor, global::System.Runtime.CompilerServices.QCallTypeHandle sourceTypeHandle, global::System.Runtime.CompilerServices.QCallModule sourceModule); 3067private static partial void GetDynamicMethod(global::System.Runtime.CompilerServices.QCallModule module, string name, byte[] sig, int sigLen, global::System.Runtime.CompilerServices.ObjectHandleOnStack resolver, global::System.Runtime.CompilerServices.ObjectHandleOnStack result) 3092static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, byte* __name_native, byte* __sig_native, int __sigLen_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __resolver_native, global::System.Runtime.CompilerServices.ObjectHandleOnStack __result_native); 3101private static extern partial int GetToken(global::System.Runtime.CompilerServices.QCallModule module); 3109private static extern partial void ResolveType(global::System.Runtime.CompilerServices.QCallModule module, int typeToken, nint* typeInstArgs, int typeInstCount, nint* methodInstArgs, int methodInstCount, global::System.Runtime.CompilerServices.ObjectHandleOnStack type); 3117private static extern partial global::System.RuntimeMethodHandleInternal ResolveMethod(global::System.Runtime.CompilerServices.QCallModule module, int methodToken, nint* typeInstArgs, int typeInstCount, nint* methodInstArgs, int methodInstCount); 3125private static extern partial void ResolveField(global::System.Runtime.CompilerServices.QCallModule module, int fieldToken, nint* typeInstArgs, int typeInstCount, nint* methodInstArgs, int methodInstCount, global::System.Runtime.CompilerServices.ObjectHandleOnStack retField); 3133internal static extern partial void GetModuleType(global::System.Runtime.CompilerServices.QCallModule handle, global::System.Runtime.CompilerServices.ObjectHandleOnStack type); 3141private static extern partial void GetPEKind(global::System.Runtime.CompilerServices.QCallModule handle, int* peKind, int* machine); 3149private static extern partial int GetMDStreamVersion(global::System.Runtime.CompilerServices.QCallModule module);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (11)
102private static partial int GetTypeRef(QCallModule module, string strFullName, QCallModule refedModule, int tkResolution); 105private static partial int GetMemberRef(QCallModule module, QCallModule refedModule, int tr, int defToken); 116private static partial int GetMemberRefFromSignature(QCallModule module, int tr, string methodName, byte[] signature, int length); 125private static partial int GetMemberRefOfMethodInfo(QCallModule module, int tr, RuntimeMethodHandleInternal method); 148private static partial int GetMemberRefOfFieldInfo(QCallModule module, int tkType, QCallTypeHandle declaringType, int tkField); 159private static partial int GetTokenFromTypeSpec(QCallModule pModule, byte[] signature, int length); 168private static partial int GetArrayMethodToken(QCallModule module, int tkTypeSpec, string methodName, byte[] signature, int sigLength); 171private static partial int GetStringConstant(QCallModule module, string str, int length); 174internal static partial void SetFieldRVAContent(QCallModule module, int fdToken, byte[]? data, int length);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (21)
61private static partial void SetParentType(QCallModule module, int tdTypeDef, int tkParent); 64private static partial void AddInterfaceImpl(QCallModule module, int tdTypeDef, int tkInterface); 69internal static partial int DefineMethod(QCallModule module, int tkParent, string name, byte[] signature, int sigLength, 73internal static partial int DefineMethodSpec(QCallModule module, int tkParent, byte[] signature, int sigLength); 76internal static partial int DefineField(QCallModule module, int tkParent, string name, byte[] signature, int sigLength, 80private static partial void SetMethodIL(QCallModule module, int tk, [MarshalAs(UnmanagedType.Bool)] bool isInitLocals, 88private static partial void DefineCustomAttribute(QCallModule module, int tkAssociate, int tkConstructor, 99internal static partial int DefineProperty(QCallModule module, int tkParent, string name, PropertyAttributes attributes, 103internal static partial int DefineEvent(QCallModule module, int tkParent, string name, EventAttributes attributes, int tkEventType); 106internal static partial void DefineMethodSemantics(QCallModule module, int tkAssociation, 110internal static partial void DefineMethodImpl(QCallModule module, int tkType, int tkBody, int tkDecl); 113internal static partial void SetMethodImpl(QCallModule module, int tkMethod, MethodImplAttributes MethodImplAttributes); 116internal static partial int SetParamInfo(QCallModule module, int tkMethod, int iSequence, 120internal static partial int GetTokenFromSig(QCallModule module, byte[] signature, int sigLength); 123internal static partial void SetFieldLayoutOffset(QCallModule module, int fdToken, int iOffset); 126internal static partial void SetClassLayout(QCallModule module, int tk, PackingSize iPackingSize, int iTypeSize); 129private static unsafe partial void SetConstantValue(QCallModule module, int tk, int corType, void* pValue); 132private static partial void SetPInvokeData(QCallModule module, string DllName, string name, int token, int linkFlags); 537private static partial int DefineType(QCallModule module, 541private static partial int DefineGenericParam(QCallModule module, 545private static partial void TermCreateClass(QCallModule module, int tk, ObjectHandleOnStack type);
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
1863QCallModule pModule, 1892QCallModule pModule,
src\System\Reflection\RuntimeModule.cs (3)
404private static partial void GetFullyQualifiedName(QCallModule module, StringHandleOnStack retString); 419private static partial void GetTypes(QCallModule module, ObjectHandleOnStack retTypes); 480private static partial void GetScopeName(QCallModule module, StringHandleOnStack retString);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
187private static partial void RunModuleConstructor(QCallModule module);
src\System\RuntimeHandles.cs (9)
1061QCallModule sourceModule); 1774QCallModule module, 1796private static partial int GetToken(QCallModule module); 1862private static partial void ResolveType(QCallModule module, 1914private static partial RuntimeMethodHandleInternal ResolveMethod(QCallModule module, 1968private static partial void ResolveField(QCallModule module, 1977internal static partial void GetModuleType(QCallModule handle, ObjectHandleOnStack type); 1987private static partial void GetPEKind(QCallModule handle, int* peKind, int* machine); 2000private static partial int GetMDStreamVersion(QCallModule module);