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)
193RunModuleConstructor(new QCallModule(ref rm));
src\System\RuntimeHandles.cs (8)
1782new QCallModule(ref module), 1796=> GetToken(new QCallModule(ref module)); 1843ResolveType(new QCallModule(ref module), typeToken, typeInstArgs, typeInstantiationContextHandles.Length, methodInstArgs, methodInstantiationContextHandles.Length, ObjectHandleOnStack.Create(ref type)); 1898return ResolveMethod(new QCallModule(ref module), methodToken, typeInstArgs, typeInstantiationContext.Length, methodInstArgs, methodInstantiationContext.Length); 1949ResolveField(new QCallModule(ref module), fieldToken, typeInstArgs, typeInstantiationContextHandles.Length, methodInstArgs, methodInstantiationContextHandles.Length, ObjectHandleOnStack.Create(ref field)); 1979GetModuleType(new QCallModule(ref module), ObjectHandleOnStack.Create(ref type)); 1990GetPEKind(new QCallModule(ref module), &lKind, &lMachine); 2000=> GetMDStreamVersion(new QCallModule(ref module));
116 references to QCallModule
System.Private.CoreLib (116)
LibraryImports.g.cs (69)
706private static partial int GetTypeRef(global::System.Runtime.CompilerServices.QCallModule module, string strFullName, global::System.Runtime.CompilerServices.QCallModule refedModule, int tkResolution) 718static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __strFullName_native, global::System.Runtime.CompilerServices.QCallModule __refedModule_native, int __tkResolution_native); 727private static extern partial int GetMemberRef(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.QCallModule refedModule, int tr, int defToken); 735private static partial int GetMemberRefFromSignature(global::System.Runtime.CompilerServices.QCallModule module, int tr, string methodName, byte[] signature, int length) 748static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tr_native, ushort* __methodName_native, byte* __signature_native, int __length_native); 757private static extern partial int GetMemberRefOfMethodInfo(global::System.Runtime.CompilerServices.QCallModule module, int tr, global::System.RuntimeMethodHandleInternal method); 765private static extern partial int GetMemberRefOfFieldInfo(global::System.Runtime.CompilerServices.QCallModule module, int tkType, global::System.Runtime.CompilerServices.QCallTypeHandle declaringType, int tkField); 773private static partial int GetTokenFromTypeSpec(global::System.Runtime.CompilerServices.QCallModule pModule, byte[] signature, int length) 785static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __pModule_native, byte* __signature_native, int __length_native); 794private static partial int GetArrayMethodToken(global::System.Runtime.CompilerServices.QCallModule module, int tkTypeSpec, string methodName, byte[] signature, int sigLength) 807static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkTypeSpec_native, ushort* __methodName_native, byte* __signature_native, int __sigLength_native); 816private static partial int GetStringConstant(global::System.Runtime.CompilerServices.QCallModule module, string str, int length) 828static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __str_native, int __length_native); 837internal static partial void SetFieldRVAContent(global::System.Runtime.CompilerServices.QCallModule module, int fdToken, byte[] data, int length) 847static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __fdToken_native, byte* __data_native, int __length_native); 856private static extern partial void SetParentType(global::System.Runtime.CompilerServices.QCallModule module, int tdTypeDef, int tkParent); 864private static extern partial void AddInterfaceImpl(global::System.Runtime.CompilerServices.QCallModule module, int tdTypeDef, int tkInterface); 872internal static partial int DefineMethod(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, byte[] signature, int sigLength, global::System.Reflection.MethodAttributes attributes) 885static 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); 894internal static partial int DefineMethodSpec(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, byte[] signature, int sigLength) 906static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkParent_native, byte* __signature_native, int __sigLength_native); 915internal static partial int DefineField(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, byte[] signature, int sigLength, global::System.Reflection.FieldAttributes attributes) 928static 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); 937private 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) 953static 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); 962private static partial void DefineCustomAttribute(global::System.Runtime.CompilerServices.QCallModule module, int tkAssociate, int tkConstructor, global::System.ReadOnlySpan<byte> attr, int attrLength) 972static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkAssociate_native, int __tkConstructor_native, byte* __attr_native, int __attrLength_native); 981internal static partial int DefineProperty(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, global::System.Reflection.PropertyAttributes attributes, byte[] signature, int sigLength) 994static 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); 1003internal static partial int DefineEvent(global::System.Runtime.CompilerServices.QCallModule module, int tkParent, string name, global::System.Reflection.EventAttributes attributes, int tkEventType) 1015static 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); 1024internal static extern partial void DefineMethodSemantics(global::System.Runtime.CompilerServices.QCallModule module, int tkAssociation, global::System.Reflection.MethodSemanticsAttributes semantics, int tkMethod); 1032internal static extern partial void DefineMethodImpl(global::System.Runtime.CompilerServices.QCallModule module, int tkType, int tkBody, int tkDecl); 1040internal static extern partial void SetMethodImpl(global::System.Runtime.CompilerServices.QCallModule module, int tkMethod, global::System.Reflection.MethodImplAttributes MethodImplAttributes); 1048internal static partial int SetParamInfo(global::System.Runtime.CompilerServices.QCallModule module, int tkMethod, int iSequence, global::System.Reflection.ParameterAttributes iParamAttributes, string strParamName) 1060static 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); 1069internal static partial int GetTokenFromSig(global::System.Runtime.CompilerServices.QCallModule module, byte[] signature, int sigLength) 1081static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, byte* __signature_native, int __sigLength_native); 1090internal static extern partial void SetFieldLayoutOffset(global::System.Runtime.CompilerServices.QCallModule module, int fdToken, int iOffset); 1098internal static extern partial void SetClassLayout(global::System.Runtime.CompilerServices.QCallModule module, int tk, global::System.Reflection.Emit.PackingSize iPackingSize, int iTypeSize); 1106private static unsafe extern partial void SetConstantValue(global::System.Runtime.CompilerServices.QCallModule module, int tk, int corType, void* pValue); 1114private static partial void SetPInvokeData(global::System.Runtime.CompilerServices.QCallModule module, string DllName, string name, int token, int linkFlags) 1125static extern unsafe void __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __DllName_native, ushort* __name_native, int __token_native, int __linkFlags_native); 1134private static partial int DefineType(global::System.Runtime.CompilerServices.QCallModule module, string fullname, int tkParent, global::System.Reflection.TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens) 1147static 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); 1156private static partial int DefineGenericParam(global::System.Runtime.CompilerServices.QCallModule module, string name, int tkParent, global::System.Reflection.GenericParameterAttributes attributes, int position, int[] constraints) 1169static 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); 1178private static extern partial void TermCreateClass(global::System.Runtime.CompilerServices.QCallModule module, int tk, global::System.Runtime.CompilerServices.ObjectHandleOnStack type); 1697private 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) 1709static 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); 1718private 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) 1732static 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); 1741private static extern partial void GetFullyQualifiedName(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.StringHandleOnStack retString); 1749private static extern partial void GetTypes(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.ObjectHandleOnStack retTypes); 1757private static extern partial void GetScopeName(global::System.Runtime.CompilerServices.QCallModule module, global::System.Runtime.CompilerServices.StringHandleOnStack retString); 1844private static extern partial void RunModuleConstructor(global::System.Runtime.CompilerServices.QCallModule module); 2940internal 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); 3115private 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) 3140static 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); 3149private static extern partial int GetToken(global::System.Runtime.CompilerServices.QCallModule module); 3157private 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); 3165private static extern partial global::System.RuntimeMethodHandleInternal ResolveMethod(global::System.Runtime.CompilerServices.QCallModule module, int methodToken, nint* typeInstArgs, int typeInstCount, nint* methodInstArgs, int methodInstCount); 3173private 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); 3181internal static extern partial void GetModuleType(global::System.Runtime.CompilerServices.QCallModule handle, global::System.Runtime.CompilerServices.ObjectHandleOnStack type); 3189private static extern partial void GetPEKind(global::System.Runtime.CompilerServices.QCallModule handle, int* peKind, int* machine); 3197private 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)
186private static partial void RunModuleConstructor(QCallModule module);
src\System\RuntimeHandles.cs (9)
1061QCallModule sourceModule); 1771QCallModule module, 1793private static partial int GetToken(QCallModule module); 1859private static partial void ResolveType(QCallModule module, 1911private static partial RuntimeMethodHandleInternal ResolveMethod(QCallModule module, 1965private static partial void ResolveField(QCallModule module, 1974internal static partial void GetModuleType(QCallModule handle, ObjectHandleOnStack type); 1984private static partial void GetPEKind(QCallModule handle, int* peKind, int* machine); 1997private static partial int GetMDStreamVersion(QCallModule module);