Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
3345 lines (3159 sloc) 152 KB
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// DO NOT EDIT THIS FILE! It IS AUTOGENERATED
using System;
using System.Runtime.InteropServices;
namespace Internal.JitInterface
{
unsafe partial class CorInfoImpl
{
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getMethodAttribs(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setMethodAttribs(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CorInfoMethodRuntimeFlags attribs);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getMethodSig(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CORINFO_SIG_INFO* sig, CORINFO_CLASS_STRUCT_* memberParent);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __getMethodInfo(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CORINFO_METHOD_INFO* info);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoInline __canInline(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* calleeHnd, ref uint pRestrictions);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __reportInliningDecision(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* inlinerHnd, CORINFO_METHOD_STRUCT_* inlineeHnd, CorInfoInline inlineResult, byte* reason);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __canTailCall(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* declaredCalleeHnd, CORINFO_METHOD_STRUCT_* exactCalleeHnd, [MarshalAs(UnmanagedType.I1)]bool fIsTailPrefix);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __reportTailCallDecision(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* calleeHnd, [MarshalAs(UnmanagedType.I1)]bool fIsTailPrefix, CorInfoTailCall tailCallResult, byte* reason);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getEHinfo(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint EHnumber, ref CORINFO_EH_CLAUSE clause);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getMethodClass(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_MODULE_STRUCT_* __getMethodModule(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getMethodVTableOffset(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref uint offsetOfIndirection, ref uint offsetAfterIndirection, [MarshalAs(UnmanagedType.U1)] ref bool isRelative);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_METHOD_STRUCT_* __resolveVirtualMethod(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* virtualMethod, CORINFO_CLASS_STRUCT_* implementingClass, CORINFO_CONTEXT_STRUCT* ownerType);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_METHOD_STRUCT_* __getUnboxedEntry(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte* requiresInstMethodTableArg);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getDefaultEqualityComparerClass(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* elemType);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __expandRawHandleIntrinsic(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, ref CORINFO_GENERICHANDLE_RESULT pResult);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoIntrinsics __getIntrinsicID(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, byte* pMustExpand);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __isInSIMDModule(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* classHnd);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoUnmanagedCallConv __getUnmanagedCallConv(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __pInvokeMarshalingRequired(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, CORINFO_SIG_INFO* callSiteSig);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __satisfiesMethodConstraints(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* parent, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isCompatibleDelegate(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* objCls, CORINFO_CLASS_STRUCT_* methodParentCls, CORINFO_METHOD_STRUCT_* method, CORINFO_CLASS_STRUCT_* delegateCls, [MarshalAs(UnmanagedType.Bool)] ref bool pfIsOpenDelegate);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoInstantiationVerification __isInstantiationOfVerifiedGeneric(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __initConstraintsForVerification(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, [MarshalAs(UnmanagedType.Bool)] ref bool pfHasCircularClassConstraints, [MarshalAs(UnmanagedType.Bool)] ref bool pfHasCircularMethodConstraint);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoCanSkipVerificationResult __canSkipMethodVerification(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftnHandle);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __methodMustBeLoadedBeforeCodeIsRun(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_METHOD_STRUCT_* __mapMethodDeclToMethodImpl(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getGSCookie(IntPtr _this, IntPtr* ppException, IntPtr* pCookieVal, IntPtr** ppCookieVal);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __resolveToken(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __tryResolveToken(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __findSig(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint sigTOK, CORINFO_CONTEXT_STRUCT* context, CORINFO_SIG_INFO* sig);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __findCallSiteSig(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint methTOK, CORINFO_CONTEXT_STRUCT* context, CORINFO_SIG_INFO* sig);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getTokenTypeAsHandle(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoCanSkipVerificationResult __canSkipVerification(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isValidToken(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint metaTOK);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isValidStringRef(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint metaTOK);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __shouldEnforceCallvirtRestriction(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* scope);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __asCorInfoType(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getClassName(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getClassNameFromMetadata(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, byte** namespaceName);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getTypeInstantiationArgument(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, uint index);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate int __appendClassName(IntPtr _this, IntPtr* ppException, short** ppBuf, ref int pnBufLen, CORINFO_CLASS_STRUCT_* cls, [MarshalAs(UnmanagedType.Bool)]bool fNamespace, [MarshalAs(UnmanagedType.Bool)]bool fFullInst, [MarshalAs(UnmanagedType.Bool)]bool fAssembly);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isValueClass(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __canInlineTypeCheckWithObjectVTable(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassAttribs(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isStructRequiringStackAllocRetBuf(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_MODULE_STRUCT_* __getClassModule(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_ASSEMBLY_STRUCT_* __getModuleAssembly(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* mod);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getAssemblyName(IntPtr _this, IntPtr* ppException, CORINFO_ASSEMBLY_STRUCT_* assem);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __LongLifetimeMalloc(IntPtr _this, IntPtr* ppException, UIntPtr sz);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __LongLifetimeFree(IntPtr _this, IntPtr* ppException, void* obj);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getClassModuleIdForStatics(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, CORINFO_MODULE_STRUCT_** pModule, void** ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassSize(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getHeapClassSize(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __canAllocateOnStack(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassAlignmentRequirement(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, [MarshalAs(UnmanagedType.Bool)]bool fDoubleAlignHint);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassGClayout(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, byte* gcPtrs);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassNumInstanceFields(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_FIELD_STRUCT_* __getFieldInClass(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd, int num);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __checkMethodModifier(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hMethod, byte* modifier, [MarshalAs(UnmanagedType.Bool)]bool fOptional);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getNewHelper(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getNewArrHelper(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* arrayCls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getCastingHelper(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.I1)]bool fThrowing);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getSharedCCtorHelper(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getSecurityPrologHelper(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getTypeForBox(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getBoxHelper(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getUnBoxHelper(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __getReadyToRunHelper(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, ref CORINFO_LOOKUP_KIND pGenericLookupKind, CorInfoHelpFunc id, ref CORINFO_CONST_LOOKUP pLookup);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getReadyToRunDelegateCtorHelper(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pTargetMethod, CORINFO_CLASS_STRUCT_* delegateType, ref CORINFO_LOOKUP pLookup);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getHelperName(IntPtr _this, IntPtr* ppException, CorInfoHelpFunc helpFunc);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoInitClassResult __initClass(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, CORINFO_METHOD_STRUCT_* method, CORINFO_CONTEXT_STRUCT* context, [MarshalAs(UnmanagedType.Bool)]bool speculative);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __classMustBeLoadedBeforeCodeIsRun(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getBuiltinClass(IntPtr _this, IntPtr* ppException, CorInfoClassId classId);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __getTypeForPrimitiveValueClass(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __getTypeForPrimitiveNumericClass(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __canCast(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* child, CORINFO_CLASS_STRUCT_* parent);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __areTypesEquivalent(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate TypeCompareState __compareTypesForCast(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* fromClass, CORINFO_CLASS_STRUCT_* toClass);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate TypeCompareState __compareTypesForEquality(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __mergeClasses(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getParentType(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __getChildType(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd, CORINFO_CLASS_STRUCT_** clsRet);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __satisfiesClassConstraints(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isSDArray(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getArrayRank(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getArrayInitializationData(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, uint size);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoIsAccessAllowedResult __canAccessClass(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, ref CORINFO_HELPER_DESC pAccessHelper);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getFieldName(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* ftn, byte** moduleName);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getFieldClass(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __getFieldType(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, CORINFO_CLASS_STRUCT_** structType, CORINFO_CLASS_STRUCT_* memberParent);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getFieldOffset(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __isWriteBarrierHelperRequired(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getFieldInfo(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, CORINFO_ACCESS_FLAGS flags, CORINFO_FIELD_INFO* pResult);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __isFieldStatic(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* fldHnd);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getBoundaries(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref uint cILOffsets, ref uint* pILOffsets, BoundaryTypes* implictBoundaries);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setBoundaries(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint cMap, OffsetMapping* pMap);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getVars(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref uint cVars, ILVarInfo** vars, [MarshalAs(UnmanagedType.U1)] ref bool extendOthers);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setVars(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint cVars, NativeVarInfo* vars);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __allocateArray(IntPtr _this, IntPtr* ppException, uint cBytes);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __freeArray(IntPtr _this, IntPtr* ppException, void* array);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_ARG_LIST_STRUCT_* __getArgNext(IntPtr _this, IntPtr* ppException, CORINFO_ARG_LIST_STRUCT_* args);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoTypeWithMod __getArgType(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_STRUCT_* args, CORINFO_CLASS_STRUCT_** vcTypeRet);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getArgClass(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_STRUCT_* args);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoType __getHFAType(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* hClass);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate HRESULT __GetErrorHRESULT(IntPtr _this, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __GetErrorMessage(IntPtr _this, IntPtr* ppException, short* buffer, uint bufferLength);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate int __FilterException(IntPtr _this, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __HandleException(IntPtr _this, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __ThrowExceptionForJitResult(IntPtr _this, IntPtr* ppException, HRESULT result);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __ThrowExceptionForHelper(IntPtr _this, IntPtr* ppException, ref CORINFO_HELPER_DESC throwHelper);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __runWithErrorTrap(IntPtr _this, IntPtr* ppException, void* function, void* parameter);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getEEInfo(IntPtr _this, IntPtr* ppException, ref CORINFO_EE_INFO pEEInfoOut);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.LPWStr)]delegate string __getJitTimeLogFilename(IntPtr _this, IntPtr* ppException);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate mdToken __getMethodDefFromMethod(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hMethod);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getMethodName(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte** moduleName);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __getMethodNameFromMetadata(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte** className, byte** namespaceName);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getMethodHash(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate byte* __findNameOfToken(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* moduleHandle, mdToken token, byte* szFQName, UIntPtr FQNameCapacity);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __getSystemVAmd64PassStructInRegisterDescriptor(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* structHnd, SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getThreadTLSIndex(IntPtr _this, IntPtr* ppException, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getInlinedCallFrameVptr(IntPtr _this, IntPtr* ppException, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate int* __getAddrOfCaptureThreadGlobal(IntPtr _this, IntPtr* ppException, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getHelperFtn(IntPtr _this, IntPtr* ppException, CorInfoHelpFunc ftnNum, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getFunctionEntryPoint(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref CORINFO_CONST_LOOKUP pResult, CORINFO_ACCESS_FLAGS accessFlags);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getFunctionFixedEntryPoint(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref CORINFO_CONST_LOOKUP pResult);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getMethodSync(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CorInfoHelpFunc __getLazyStringLiteralHelper(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* handle);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_MODULE_STRUCT_* __embedModuleHandle(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* handle, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __embedClassHandle(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* handle, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_METHOD_STRUCT_* __embedMethodHandle(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* handle, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_FIELD_STRUCT_* __embedFieldHandle(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* handle, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __embedGenericHandle(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.Bool)]bool fEmbedParent, ref CORINFO_GENERICHANDLE_RESULT pResult);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getLocationOfThisType(IntPtr _this, IntPtr* ppException, out CORINFO_LOOKUP_KIND _return, CORINFO_METHOD_STRUCT_* context);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getPInvokeUnmanagedTarget(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getAddressOfPInvokeFixup(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getAddressOfPInvokeTarget(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref CORINFO_CONST_LOOKUP pLookup);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __GetCookieForPInvokeCalliSig(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* szMetaSig, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __canGetCookieForPInvokeCalliSig(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* szMetaSig);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_JUST_MY_CODE_HANDLE_* __getJustMyCodeHandle(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref CORINFO_JUST_MY_CODE_HANDLE_* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __GetProfilingHandle(IntPtr _this, IntPtr* ppException, [MarshalAs(UnmanagedType.Bool)] ref bool pbHookFunction, ref void* pProfilerHandle, [MarshalAs(UnmanagedType.Bool)] ref bool pbIndirectedHandles);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getCallInfo(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_RESOLVED_TOKEN* pConstrainedResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, CORINFO_CALLINFO_FLAGS flags, CORINFO_CALL_INFO* pResult);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __canAccessFamily(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hCaller, CORINFO_CLASS_STRUCT_* hInstanceType);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __isRIDClassDomainID(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getClassDomainID(IntPtr _this, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getFieldAddress(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_CLASS_STRUCT_* __getStaticFieldCurrentClass(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, byte* pIsSpeculative);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate IntPtr __getVarArgsHandle(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* pSig, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __canGetVarArgsHandle(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* pSig);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate InfoAccessType __constructStringLiteral(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, mdToken metaTok, ref void* ppValue);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate InfoAccessType __emptyStringLiteral(IntPtr _this, IntPtr* ppException, ref void* ppValue);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getFieldThreadLocalStoreID(IntPtr _this, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setOverride(IntPtr _this, IntPtr* ppException, IntPtr pOverride, CORINFO_METHOD_STRUCT_* currentMethod);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __addActiveDependency(IntPtr _this, IntPtr* ppException, CORINFO_MODULE_STRUCT_* moduleFrom, CORINFO_MODULE_STRUCT_* moduleTo);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate CORINFO_METHOD_STRUCT_* __GetDelegateCtor(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* methHnd, CORINFO_CLASS_STRUCT_* clsHnd, CORINFO_METHOD_STRUCT_* targetMethodHnd, ref DelegateCtorArgs pCtorData);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __MethodCompileComplete(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* methHnd);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getTailCallCopyArgsThunk(IntPtr _this, IntPtr* ppException, CORINFO_SIG_INFO* pSig, CorInfoHelperTailCallSpecialHandling flags);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.I1)]delegate bool __convertPInvokeCalliToCall(IntPtr _this, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.I1)]bool mustConvert);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __getMemoryManager(IntPtr _this, IntPtr* ppException);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __allocMem(IntPtr _this, IntPtr* ppException, uint hotCodeSize, uint coldCodeSize, uint roDataSize, uint xcptnsCount, CorJitAllocMemFlag flag, ref void* hotCodeBlock, ref void* coldCodeBlock, ref void* roDataBlock);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __reserveUnwindInfo(IntPtr _this, IntPtr* ppException, [MarshalAs(UnmanagedType.Bool)]bool isFunclet, [MarshalAs(UnmanagedType.Bool)]bool isColdCode, uint unwindSize);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __allocUnwindInfo(IntPtr _this, IntPtr* ppException, byte* pHotCode, byte* pColdCode, uint startOffset, uint endOffset, uint unwindSize, byte* pUnwindBlock, CorJitFuncKind funcKind);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void* __allocGCInfo(IntPtr _this, IntPtr* ppException, UIntPtr size);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __yieldExecution(IntPtr _this, IntPtr* ppException);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setEHcount(IntPtr _this, IntPtr* ppException, uint cEH);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __setEHinfo(IntPtr _this, IntPtr* ppException, uint EHnumber, ref CORINFO_EH_CLAUSE clause);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
[return: MarshalAs(UnmanagedType.Bool)]delegate bool __logMsg(IntPtr _this, IntPtr* ppException, uint level, byte* fmt, IntPtr args);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate int __doAssert(IntPtr _this, IntPtr* ppException, byte* szFile, int iLine, byte* szExpr);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __reportFatalError(IntPtr _this, IntPtr* ppException, CorJitResult result);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate HRESULT __allocBBProfileBuffer(IntPtr _this, IntPtr* ppException, uint count, ref ProfileBuffer* profileBuffer);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate HRESULT __getBBProfileData(IntPtr _this, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftnHnd, ref uint count, ref ProfileBuffer* profileBuffer, ref uint numRuns);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __recordCallSite(IntPtr _this, IntPtr* ppException, uint instrOffset, CORINFO_SIG_INFO* callSig, CORINFO_METHOD_STRUCT_* methodHandle);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __recordRelocation(IntPtr _this, IntPtr* ppException, void* location, void* target, ushort fRelocType, ushort slotNum, int addlDelta);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate ushort __getRelocTypeHint(IntPtr _this, IntPtr* ppException, void* target);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate void __getModuleNativeEntryPointRange(IntPtr _this, IntPtr* ppException, ref void* pStart, ref void* pEnd);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getExpectedTargetArchitecture(IntPtr _this, IntPtr* ppException);
[UnmanagedFunctionPointerAttribute(default(CallingConvention))]
delegate uint __getJitFlags(IntPtr _this, IntPtr* ppException, ref CORJIT_FLAGS flags, uint sizeInBytes);
static uint _getMethodAttribs(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodAttribs(ftn);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static void _setMethodAttribs(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CorInfoMethodRuntimeFlags attribs)
{
var _this = GetThis(thisHandle);
try
{
_this.setMethodAttribs(ftn, attribs);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getMethodSig(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CORINFO_SIG_INFO* sig, CORINFO_CLASS_STRUCT_* memberParent)
{
var _this = GetThis(thisHandle);
try
{
_this.getMethodSig(ftn, sig, memberParent);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _getMethodInfo(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, CORINFO_METHOD_INFO* info)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodInfo(ftn, info);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CorInfoInline _canInline(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* calleeHnd, ref uint pRestrictions)
{
var _this = GetThis(thisHandle);
try
{
return _this.canInline(callerHnd, calleeHnd, ref pRestrictions);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoInline);
}
}
static void _reportInliningDecision(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* inlinerHnd, CORINFO_METHOD_STRUCT_* inlineeHnd, CorInfoInline inlineResult, byte* reason)
{
var _this = GetThis(thisHandle);
try
{
_this.reportInliningDecision(inlinerHnd, inlineeHnd, inlineResult, reason);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _canTailCall(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* declaredCalleeHnd, CORINFO_METHOD_STRUCT_* exactCalleeHnd, [MarshalAs(UnmanagedType.I1)]bool fIsTailPrefix)
{
var _this = GetThis(thisHandle);
try
{
return _this.canTailCall(callerHnd, declaredCalleeHnd, exactCalleeHnd, fIsTailPrefix);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void _reportTailCallDecision(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* callerHnd, CORINFO_METHOD_STRUCT_* calleeHnd, [MarshalAs(UnmanagedType.I1)]bool fIsTailPrefix, CorInfoTailCall tailCallResult, byte* reason)
{
var _this = GetThis(thisHandle);
try
{
_this.reportTailCallDecision(callerHnd, calleeHnd, fIsTailPrefix, tailCallResult, reason);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getEHinfo(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint EHnumber, ref CORINFO_EH_CLAUSE clause)
{
var _this = GetThis(thisHandle);
try
{
_this.getEHinfo(ftn, EHnumber, ref clause);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_CLASS_STRUCT_* _getMethodClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodClass(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CORINFO_MODULE_STRUCT_* _getMethodModule(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodModule(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_MODULE_STRUCT_*);
}
}
static void _getMethodVTableOffset(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref uint offsetOfIndirection, ref uint offsetAfterIndirection, [MarshalAs(UnmanagedType.U1)] ref bool isRelative)
{
var _this = GetThis(thisHandle);
try
{
_this.getMethodVTableOffset(method, ref offsetOfIndirection, ref offsetAfterIndirection, ref isRelative);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_METHOD_STRUCT_* _resolveVirtualMethod(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* virtualMethod, CORINFO_CLASS_STRUCT_* implementingClass, CORINFO_CONTEXT_STRUCT* ownerType)
{
var _this = GetThis(thisHandle);
try
{
return _this.resolveVirtualMethod(virtualMethod, implementingClass, ownerType);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_METHOD_STRUCT_*);
}
}
static CORINFO_METHOD_STRUCT_* _getUnboxedEntry(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte* requiresInstMethodTableArg)
{
var _this = GetThis(thisHandle);
try
{
return _this.getUnboxedEntry(ftn, requiresInstMethodTableArg);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_METHOD_STRUCT_*);
}
}
static CORINFO_CLASS_STRUCT_* _getDefaultEqualityComparerClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* elemType)
{
var _this = GetThis(thisHandle);
try
{
return _this.getDefaultEqualityComparerClass(elemType);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static void _expandRawHandleIntrinsic(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, ref CORINFO_GENERICHANDLE_RESULT pResult)
{
var _this = GetThis(thisHandle);
try
{
_this.expandRawHandleIntrinsic(ref pResolvedToken, ref pResult);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CorInfoIntrinsics _getIntrinsicID(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, byte* pMustExpand)
{
var _this = GetThis(thisHandle);
try
{
return _this.getIntrinsicID(method, pMustExpand);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoIntrinsics);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _isInSIMDModule(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* classHnd)
{
var _this = GetThis(thisHandle);
try
{
return _this.isInSIMDModule(classHnd);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CorInfoUnmanagedCallConv _getUnmanagedCallConv(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.getUnmanagedCallConv(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoUnmanagedCallConv);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _pInvokeMarshalingRequired(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, CORINFO_SIG_INFO* callSiteSig)
{
var _this = GetThis(thisHandle);
try
{
return _this.pInvokeMarshalingRequired(method, callSiteSig);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _satisfiesMethodConstraints(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* parent, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.satisfiesMethodConstraints(parent, method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isCompatibleDelegate(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* objCls, CORINFO_CLASS_STRUCT_* methodParentCls, CORINFO_METHOD_STRUCT_* method, CORINFO_CLASS_STRUCT_* delegateCls, [MarshalAs(UnmanagedType.Bool)] ref bool pfIsOpenDelegate)
{
var _this = GetThis(thisHandle);
try
{
return _this.isCompatibleDelegate(objCls, methodParentCls, method, delegateCls, ref pfIsOpenDelegate);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CorInfoInstantiationVerification _isInstantiationOfVerifiedGeneric(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.isInstantiationOfVerifiedGeneric(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoInstantiationVerification);
}
}
static void _initConstraintsForVerification(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, [MarshalAs(UnmanagedType.Bool)] ref bool pfHasCircularClassConstraints, [MarshalAs(UnmanagedType.Bool)] ref bool pfHasCircularMethodConstraint)
{
var _this = GetThis(thisHandle);
try
{
_this.initConstraintsForVerification(method, ref pfHasCircularClassConstraints, ref pfHasCircularMethodConstraint);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CorInfoCanSkipVerificationResult _canSkipMethodVerification(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftnHandle)
{
var _this = GetThis(thisHandle);
try
{
return _this.canSkipMethodVerification(ftnHandle);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoCanSkipVerificationResult);
}
}
static void _methodMustBeLoadedBeforeCodeIsRun(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
_this.methodMustBeLoadedBeforeCodeIsRun(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_METHOD_STRUCT_* _mapMethodDeclToMethodImpl(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method)
{
var _this = GetThis(thisHandle);
try
{
return _this.mapMethodDeclToMethodImpl(method);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_METHOD_STRUCT_*);
}
}
static void _getGSCookie(IntPtr thisHandle, IntPtr* ppException, IntPtr* pCookieVal, IntPtr** ppCookieVal)
{
var _this = GetThis(thisHandle);
try
{
_this.getGSCookie(pCookieVal, ppCookieVal);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _resolveToken(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken)
{
var _this = GetThis(thisHandle);
try
{
_this.resolveToken(ref pResolvedToken);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _tryResolveToken(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken)
{
var _this = GetThis(thisHandle);
try
{
_this.tryResolveToken(ref pResolvedToken);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _findSig(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint sigTOK, CORINFO_CONTEXT_STRUCT* context, CORINFO_SIG_INFO* sig)
{
var _this = GetThis(thisHandle);
try
{
_this.findSig(module, sigTOK, context, sig);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _findCallSiteSig(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint methTOK, CORINFO_CONTEXT_STRUCT* context, CORINFO_SIG_INFO* sig)
{
var _this = GetThis(thisHandle);
try
{
_this.findCallSiteSig(module, methTOK, context, sig);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_CLASS_STRUCT_* _getTokenTypeAsHandle(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTokenTypeAsHandle(ref pResolvedToken);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoCanSkipVerificationResult _canSkipVerification(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module)
{
var _this = GetThis(thisHandle);
try
{
return _this.canSkipVerification(module);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoCanSkipVerificationResult);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isValidToken(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint metaTOK)
{
var _this = GetThis(thisHandle);
try
{
return _this.isValidToken(module, metaTOK);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isValidStringRef(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, uint metaTOK)
{
var _this = GetThis(thisHandle);
try
{
return _this.isValidStringRef(module, metaTOK);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _shouldEnforceCallvirtRestriction(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* scope)
{
var _this = GetThis(thisHandle);
try
{
return _this.shouldEnforceCallvirtRestriction(scope);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CorInfoType _asCorInfoType(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.asCorInfoType(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
static byte* _getClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassName(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static byte* _getClassNameFromMetadata(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, byte** namespaceName)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassNameFromMetadata(cls, namespaceName);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static CORINFO_CLASS_STRUCT_* _getTypeInstantiationArgument(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, uint index)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTypeInstantiationArgument(cls, index);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static int _appendClassName(IntPtr thisHandle, IntPtr* ppException, short** ppBuf, ref int pnBufLen, CORINFO_CLASS_STRUCT_* cls, [MarshalAs(UnmanagedType.Bool)]bool fNamespace, [MarshalAs(UnmanagedType.Bool)]bool fFullInst, [MarshalAs(UnmanagedType.Bool)]bool fAssembly)
{
var _this = GetThis(thisHandle);
try
{
return _this.appendClassName(ppBuf, ref pnBufLen, cls, fNamespace, fFullInst, fAssembly);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(int);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isValueClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.isValueClass(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _canInlineTypeCheckWithObjectVTable(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.canInlineTypeCheckWithObjectVTable(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static uint _getClassAttribs(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassAttribs(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isStructRequiringStackAllocRetBuf(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.isStructRequiringStackAllocRetBuf(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CORINFO_MODULE_STRUCT_* _getClassModule(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassModule(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_MODULE_STRUCT_*);
}
}
static CORINFO_ASSEMBLY_STRUCT_* _getModuleAssembly(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* mod)
{
var _this = GetThis(thisHandle);
try
{
return _this.getModuleAssembly(mod);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_ASSEMBLY_STRUCT_*);
}
}
static byte* _getAssemblyName(IntPtr thisHandle, IntPtr* ppException, CORINFO_ASSEMBLY_STRUCT_* assem)
{
var _this = GetThis(thisHandle);
try
{
return _this.getAssemblyName(assem);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static void* _LongLifetimeMalloc(IntPtr thisHandle, IntPtr* ppException, UIntPtr sz)
{
var _this = GetThis(thisHandle);
try
{
return _this.LongLifetimeMalloc(sz);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _LongLifetimeFree(IntPtr thisHandle, IntPtr* ppException, void* obj)
{
var _this = GetThis(thisHandle);
try
{
_this.LongLifetimeFree(obj);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static byte* _getClassModuleIdForStatics(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, CORINFO_MODULE_STRUCT_** pModule, void** ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassModuleIdForStatics(cls, pModule, ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static uint _getClassSize(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassSize(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static uint _getHeapClassSize(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getHeapClassSize(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _canAllocateOnStack(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.canAllocateOnStack(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static uint _getClassAlignmentRequirement(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, [MarshalAs(UnmanagedType.Bool)]bool fDoubleAlignHint)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassAlignmentRequirement(cls, fDoubleAlignHint);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static uint _getClassGClayout(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, byte* gcPtrs)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassGClayout(cls, gcPtrs);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static uint _getClassNumInstanceFields(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassNumInstanceFields(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static CORINFO_FIELD_STRUCT_* _getFieldInClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd, int num)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldInClass(clsHnd, num);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_FIELD_STRUCT_*);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _checkMethodModifier(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hMethod, byte* modifier, [MarshalAs(UnmanagedType.Bool)]bool fOptional)
{
var _this = GetThis(thisHandle);
try
{
return _this.checkMethodModifier(hMethod, modifier, fOptional);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CorInfoHelpFunc _getNewHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle)
{
var _this = GetThis(thisHandle);
try
{
return _this.getNewHelper(ref pResolvedToken, callerHandle);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CorInfoHelpFunc _getNewArrHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* arrayCls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getNewArrHelper(arrayCls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CorInfoHelpFunc _getCastingHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.I1)]bool fThrowing)
{
var _this = GetThis(thisHandle);
try
{
return _this.getCastingHelper(ref pResolvedToken, fThrowing);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CorInfoHelpFunc _getSharedCCtorHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd)
{
var _this = GetThis(thisHandle);
try
{
return _this.getSharedCCtorHelper(clsHnd);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CorInfoHelpFunc _getSecurityPrologHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn)
{
var _this = GetThis(thisHandle);
try
{
return _this.getSecurityPrologHelper(ftn);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CORINFO_CLASS_STRUCT_* _getTypeForBox(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTypeForBox(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoHelpFunc _getBoxHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getBoxHelper(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CorInfoHelpFunc _getUnBoxHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getUnBoxHelper(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _getReadyToRunHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, ref CORINFO_LOOKUP_KIND pGenericLookupKind, CorInfoHelpFunc id, ref CORINFO_CONST_LOOKUP pLookup)
{
var _this = GetThis(thisHandle);
try
{
return _this.getReadyToRunHelper(ref pResolvedToken, ref pGenericLookupKind, id, ref pLookup);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void _getReadyToRunDelegateCtorHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pTargetMethod, CORINFO_CLASS_STRUCT_* delegateType, ref CORINFO_LOOKUP pLookup)
{
var _this = GetThis(thisHandle);
try
{
_this.getReadyToRunDelegateCtorHelper(ref pTargetMethod, delegateType, ref pLookup);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static byte* _getHelperName(IntPtr thisHandle, IntPtr* ppException, CorInfoHelpFunc helpFunc)
{
var _this = GetThis(thisHandle);
try
{
return _this.getHelperName(helpFunc);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static CorInfoInitClassResult _initClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, CORINFO_METHOD_STRUCT_* method, CORINFO_CONTEXT_STRUCT* context, [MarshalAs(UnmanagedType.Bool)]bool speculative)
{
var _this = GetThis(thisHandle);
try
{
return _this.initClass(field, method, context, speculative);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoInitClassResult);
}
}
static void _classMustBeLoadedBeforeCodeIsRun(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
_this.classMustBeLoadedBeforeCodeIsRun(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_CLASS_STRUCT_* _getBuiltinClass(IntPtr thisHandle, IntPtr* ppException, CorInfoClassId classId)
{
var _this = GetThis(thisHandle);
try
{
return _this.getBuiltinClass(classId);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoType _getTypeForPrimitiveValueClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTypeForPrimitiveValueClass(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
static CorInfoType _getTypeForPrimitiveNumericClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTypeForPrimitiveNumericClass(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _canCast(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* child, CORINFO_CLASS_STRUCT_* parent)
{
var _this = GetThis(thisHandle);
try
{
return _this.canCast(child, parent);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _areTypesEquivalent(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2)
{
var _this = GetThis(thisHandle);
try
{
return _this.areTypesEquivalent(cls1, cls2);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static TypeCompareState _compareTypesForCast(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* fromClass, CORINFO_CLASS_STRUCT_* toClass)
{
var _this = GetThis(thisHandle);
try
{
return _this.compareTypesForCast(fromClass, toClass);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(TypeCompareState);
}
}
static TypeCompareState _compareTypesForEquality(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2)
{
var _this = GetThis(thisHandle);
try
{
return _this.compareTypesForEquality(cls1, cls2);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(TypeCompareState);
}
}
static CORINFO_CLASS_STRUCT_* _mergeClasses(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls1, CORINFO_CLASS_STRUCT_* cls2)
{
var _this = GetThis(thisHandle);
try
{
return _this.mergeClasses(cls1, cls2);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CORINFO_CLASS_STRUCT_* _getParentType(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getParentType(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoType _getChildType(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* clsHnd, CORINFO_CLASS_STRUCT_** clsRet)
{
var _this = GetThis(thisHandle);
try
{
return _this.getChildType(clsHnd, clsRet);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _satisfiesClassConstraints(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.satisfiesClassConstraints(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isSDArray(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.isSDArray(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static uint _getArrayRank(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.getArrayRank(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static void* _getArrayInitializationData(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, uint size)
{
var _this = GetThis(thisHandle);
try
{
return _this.getArrayInitializationData(field, size);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static CorInfoIsAccessAllowedResult _canAccessClass(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, ref CORINFO_HELPER_DESC pAccessHelper)
{
var _this = GetThis(thisHandle);
try
{
return _this.canAccessClass(ref pResolvedToken, callerHandle, ref pAccessHelper);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoIsAccessAllowedResult);
}
}
static byte* _getFieldName(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* ftn, byte** moduleName)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldName(ftn, moduleName);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static CORINFO_CLASS_STRUCT_* _getFieldClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldClass(field);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoType _getFieldType(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, CORINFO_CLASS_STRUCT_** structType, CORINFO_CLASS_STRUCT_* memberParent)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldType(field, structType, memberParent);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
static uint _getFieldOffset(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldOffset(field);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _isWriteBarrierHelperRequired(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field)
{
var _this = GetThis(thisHandle);
try
{
return _this.isWriteBarrierHelperRequired(field);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void _getFieldInfo(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, CORINFO_ACCESS_FLAGS flags, CORINFO_FIELD_INFO* pResult)
{
var _this = GetThis(thisHandle);
try
{
_this.getFieldInfo(ref pResolvedToken, callerHandle, flags, pResult);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _isFieldStatic(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* fldHnd)
{
var _this = GetThis(thisHandle);
try
{
return _this.isFieldStatic(fldHnd);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void _getBoundaries(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref uint cILOffsets, ref uint* pILOffsets, BoundaryTypes* implictBoundaries)
{
var _this = GetThis(thisHandle);
try
{
_this.getBoundaries(ftn, ref cILOffsets, ref pILOffsets, implictBoundaries);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _setBoundaries(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint cMap, OffsetMapping* pMap)
{
var _this = GetThis(thisHandle);
try
{
_this.setBoundaries(ftn, cMap, pMap);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getVars(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref uint cVars, ILVarInfo** vars, [MarshalAs(UnmanagedType.U1)] ref bool extendOthers)
{
var _this = GetThis(thisHandle);
try
{
_this.getVars(ftn, ref cVars, vars, ref extendOthers);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _setVars(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, uint cVars, NativeVarInfo* vars)
{
var _this = GetThis(thisHandle);
try
{
_this.setVars(ftn, cVars, vars);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void* _allocateArray(IntPtr thisHandle, IntPtr* ppException, uint cBytes)
{
var _this = GetThis(thisHandle);
try
{
return _this.allocateArray(cBytes);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _freeArray(IntPtr thisHandle, IntPtr* ppException, void* array)
{
var _this = GetThis(thisHandle);
try
{
_this.freeArray(array);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_ARG_LIST_STRUCT_* _getArgNext(IntPtr thisHandle, IntPtr* ppException, CORINFO_ARG_LIST_STRUCT_* args)
{
var _this = GetThis(thisHandle);
try
{
return _this.getArgNext(args);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_ARG_LIST_STRUCT_*);
}
}
static CorInfoTypeWithMod _getArgType(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_STRUCT_* args, CORINFO_CLASS_STRUCT_** vcTypeRet)
{
var _this = GetThis(thisHandle);
try
{
return _this.getArgType(sig, args, vcTypeRet);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoTypeWithMod);
}
}
static CORINFO_CLASS_STRUCT_* _getArgClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_STRUCT_* args)
{
var _this = GetThis(thisHandle);
try
{
return _this.getArgClass(sig, args);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CorInfoType _getHFAType(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* hClass)
{
var _this = GetThis(thisHandle);
try
{
return _this.getHFAType(hClass);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoType);
}
}
static HRESULT _GetErrorHRESULT(IntPtr thisHandle, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers)
{
var _this = GetThis(thisHandle);
try
{
return _this.GetErrorHRESULT(pExceptionPointers);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(HRESULT);
}
}
static uint _GetErrorMessage(IntPtr thisHandle, IntPtr* ppException, short* buffer, uint bufferLength)
{
var _this = GetThis(thisHandle);
try
{
return _this.GetErrorMessage(buffer, bufferLength);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static int _FilterException(IntPtr thisHandle, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers)
{
var _this = GetThis(thisHandle);
try
{
return _this.FilterException(pExceptionPointers);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(int);
}
}
static void _HandleException(IntPtr thisHandle, IntPtr* ppException, _EXCEPTION_POINTERS* pExceptionPointers)
{
var _this = GetThis(thisHandle);
try
{
_this.HandleException(pExceptionPointers);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _ThrowExceptionForJitResult(IntPtr thisHandle, IntPtr* ppException, HRESULT result)
{
var _this = GetThis(thisHandle);
try
{
_this.ThrowExceptionForJitResult(result);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _ThrowExceptionForHelper(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_HELPER_DESC throwHelper)
{
var _this = GetThis(thisHandle);
try
{
_this.ThrowExceptionForHelper(ref throwHelper);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _runWithErrorTrap(IntPtr thisHandle, IntPtr* ppException, void* function, void* parameter)
{
var _this = GetThis(thisHandle);
try
{
return _this.runWithErrorTrap(function, parameter);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void _getEEInfo(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_EE_INFO pEEInfoOut)
{
var _this = GetThis(thisHandle);
try
{
_this.getEEInfo(ref pEEInfoOut);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.LPWStr)]static string _getJitTimeLogFilename(IntPtr thisHandle, IntPtr* ppException)
{
var _this = GetThis(thisHandle);
try
{
return _this.getJitTimeLogFilename();
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(string);
}
}
static mdToken _getMethodDefFromMethod(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hMethod)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodDefFromMethod(hMethod);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(mdToken);
}
}
static byte* _getMethodName(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte** moduleName)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodName(ftn, moduleName);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static byte* _getMethodNameFromMetadata(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, byte** className, byte** namespaceName)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodNameFromMetadata(ftn, className, namespaceName);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
static uint _getMethodHash(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodHash(ftn);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static byte* _findNameOfToken(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* moduleHandle, mdToken token, byte* szFQName, UIntPtr FQNameCapacity)
{
var _this = GetThis(thisHandle);
try
{
return _this.findNameOfToken(moduleHandle, token, szFQName, FQNameCapacity);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(byte*);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _getSystemVAmd64PassStructInRegisterDescriptor(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* structHnd, SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr)
{
var _this = GetThis(thisHandle);
try
{
return _this.getSystemVAmd64PassStructInRegisterDescriptor(structHnd, structPassInRegDescPtr);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static uint _getThreadTLSIndex(IntPtr thisHandle, IntPtr* ppException, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getThreadTLSIndex(ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static void* _getInlinedCallFrameVptr(IntPtr thisHandle, IntPtr* ppException, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getInlinedCallFrameVptr(ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static int* _getAddrOfCaptureThreadGlobal(IntPtr thisHandle, IntPtr* ppException, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getAddrOfCaptureThreadGlobal(ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(int*);
}
}
static void* _getHelperFtn(IntPtr thisHandle, IntPtr* ppException, CorInfoHelpFunc ftnNum, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getHelperFtn(ftnNum, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _getFunctionEntryPoint(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref CORINFO_CONST_LOOKUP pResult, CORINFO_ACCESS_FLAGS accessFlags)
{
var _this = GetThis(thisHandle);
try
{
_this.getFunctionEntryPoint(ftn, ref pResult, accessFlags);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getFunctionFixedEntryPoint(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref CORINFO_CONST_LOOKUP pResult)
{
var _this = GetThis(thisHandle);
try
{
_this.getFunctionFixedEntryPoint(ftn, ref pResult);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void* _getMethodSync(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftn, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMethodSync(ftn, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static CorInfoHelpFunc _getLazyStringLiteralHelper(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* handle)
{
var _this = GetThis(thisHandle);
try
{
return _this.getLazyStringLiteralHelper(handle);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CorInfoHelpFunc);
}
}
static CORINFO_MODULE_STRUCT_* _embedModuleHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* handle, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.embedModuleHandle(handle, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_MODULE_STRUCT_*);
}
}
static CORINFO_CLASS_STRUCT_* _embedClassHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* handle, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.embedClassHandle(handle, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static CORINFO_METHOD_STRUCT_* _embedMethodHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* handle, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.embedMethodHandle(handle, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_METHOD_STRUCT_*);
}
}
static CORINFO_FIELD_STRUCT_* _embedFieldHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* handle, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.embedFieldHandle(handle, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_FIELD_STRUCT_*);
}
}
static void _embedGenericHandle(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.Bool)]bool fEmbedParent, ref CORINFO_GENERICHANDLE_RESULT pResult)
{
var _this = GetThis(thisHandle);
try
{
_this.embedGenericHandle(ref pResolvedToken, fEmbedParent, ref pResult);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getLocationOfThisType(IntPtr thisHandle, IntPtr* ppException, out CORINFO_LOOKUP_KIND _return, CORINFO_METHOD_STRUCT_* context)
{
var _this = GetThis(thisHandle);
try
{
_this.getLocationOfThisType(out _return, context);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
_return = default(CORINFO_LOOKUP_KIND);
}
}
static void* _getPInvokeUnmanagedTarget(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getPInvokeUnmanagedTarget(method, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void* _getAddressOfPInvokeFixup(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getAddressOfPInvokeFixup(method, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _getAddressOfPInvokeTarget(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref CORINFO_CONST_LOOKUP pLookup)
{
var _this = GetThis(thisHandle);
try
{
_this.getAddressOfPInvokeTarget(method, ref pLookup);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void* _GetCookieForPInvokeCalliSig(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* szMetaSig, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.GetCookieForPInvokeCalliSig(szMetaSig, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _canGetCookieForPInvokeCalliSig(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* szMetaSig)
{
var _this = GetThis(thisHandle);
try
{
return _this.canGetCookieForPInvokeCalliSig(szMetaSig);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static CORINFO_JUST_MY_CODE_HANDLE_* _getJustMyCodeHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* method, ref CORINFO_JUST_MY_CODE_HANDLE_* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getJustMyCodeHandle(method, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_JUST_MY_CODE_HANDLE_*);
}
}
static void _GetProfilingHandle(IntPtr thisHandle, IntPtr* ppException, [MarshalAs(UnmanagedType.Bool)] ref bool pbHookFunction, ref void* pProfilerHandle, [MarshalAs(UnmanagedType.Bool)] ref bool pbIndirectedHandles)
{
var _this = GetThis(thisHandle);
try
{
_this.GetProfilingHandle(ref pbHookFunction, ref pProfilerHandle, ref pbIndirectedHandles);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _getCallInfo(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, CORINFO_RESOLVED_TOKEN* pConstrainedResolvedToken, CORINFO_METHOD_STRUCT_* callerHandle, CORINFO_CALLINFO_FLAGS flags, CORINFO_CALL_INFO* pResult)
{
var _this = GetThis(thisHandle);
try
{
_this.getCallInfo(ref pResolvedToken, pConstrainedResolvedToken, callerHandle, flags, pResult);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _canAccessFamily(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* hCaller, CORINFO_CLASS_STRUCT_* hInstanceType)
{
var _this = GetThis(thisHandle);
try
{
return _this.canAccessFamily(hCaller, hInstanceType);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _isRIDClassDomainID(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls)
{
var _this = GetThis(thisHandle);
try
{
return _this.isRIDClassDomainID(cls);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static uint _getClassDomainID(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_STRUCT_* cls, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getClassDomainID(cls, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static void* _getFieldAddress(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldAddress(field, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static CORINFO_CLASS_STRUCT_* _getStaticFieldCurrentClass(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, byte* pIsSpeculative)
{
var _this = GetThis(thisHandle);
try
{
return _this.getStaticFieldCurrentClass(field, pIsSpeculative);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_CLASS_STRUCT_*);
}
}
static IntPtr _getVarArgsHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* pSig, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getVarArgsHandle(pSig, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(IntPtr);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _canGetVarArgsHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* pSig)
{
var _this = GetThis(thisHandle);
try
{
return _this.canGetVarArgsHandle(pSig);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static InfoAccessType _constructStringLiteral(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* module, mdToken metaTok, ref void* ppValue)
{
var _this = GetThis(thisHandle);
try
{
return _this.constructStringLiteral(module, metaTok, ref ppValue);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(InfoAccessType);
}
}
static InfoAccessType _emptyStringLiteral(IntPtr thisHandle, IntPtr* ppException, ref void* ppValue)
{
var _this = GetThis(thisHandle);
try
{
return _this.emptyStringLiteral(ref ppValue);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(InfoAccessType);
}
}
static uint _getFieldThreadLocalStoreID(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldThreadLocalStoreID(field, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static void _setOverride(IntPtr thisHandle, IntPtr* ppException, IntPtr pOverride, CORINFO_METHOD_STRUCT_* currentMethod)
{
var _this = GetThis(thisHandle);
try
{
_this.setOverride(pOverride, currentMethod);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _addActiveDependency(IntPtr thisHandle, IntPtr* ppException, CORINFO_MODULE_STRUCT_* moduleFrom, CORINFO_MODULE_STRUCT_* moduleTo)
{
var _this = GetThis(thisHandle);
try
{
_this.addActiveDependency(moduleFrom, moduleTo);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static CORINFO_METHOD_STRUCT_* _GetDelegateCtor(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* methHnd, CORINFO_CLASS_STRUCT_* clsHnd, CORINFO_METHOD_STRUCT_* targetMethodHnd, ref DelegateCtorArgs pCtorData)
{
var _this = GetThis(thisHandle);
try
{
return _this.GetDelegateCtor(methHnd, clsHnd, targetMethodHnd, ref pCtorData);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_METHOD_STRUCT_*);
}
}
static void _MethodCompileComplete(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* methHnd)
{
var _this = GetThis(thisHandle);
try
{
_this.MethodCompileComplete(methHnd);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void* _getTailCallCopyArgsThunk(IntPtr thisHandle, IntPtr* ppException, CORINFO_SIG_INFO* pSig, CorInfoHelperTailCallSpecialHandling flags)
{
var _this = GetThis(thisHandle);
try
{
return _this.getTailCallCopyArgsThunk(pSig, flags);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
[return: MarshalAs(UnmanagedType.I1)]static bool _convertPInvokeCalliToCall(IntPtr thisHandle, IntPtr* ppException, ref CORINFO_RESOLVED_TOKEN pResolvedToken, [MarshalAs(UnmanagedType.I1)]bool mustConvert)
{
var _this = GetThis(thisHandle);
try
{
return _this.convertPInvokeCalliToCall(ref pResolvedToken, mustConvert);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static void* _getMemoryManager(IntPtr thisHandle, IntPtr* ppException)
{
var _this = GetThis(thisHandle);
try
{
return _this.getMemoryManager();
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _allocMem(IntPtr thisHandle, IntPtr* ppException, uint hotCodeSize, uint coldCodeSize, uint roDataSize, uint xcptnsCount, CorJitAllocMemFlag flag, ref void* hotCodeBlock, ref void* coldCodeBlock, ref void* roDataBlock)
{
var _this = GetThis(thisHandle);
try
{
_this.allocMem(hotCodeSize, coldCodeSize, roDataSize, xcptnsCount, flag, ref hotCodeBlock, ref coldCodeBlock, ref roDataBlock);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _reserveUnwindInfo(IntPtr thisHandle, IntPtr* ppException, [MarshalAs(UnmanagedType.Bool)]bool isFunclet, [MarshalAs(UnmanagedType.Bool)]bool isColdCode, uint unwindSize)
{
var _this = GetThis(thisHandle);
try
{
_this.reserveUnwindInfo(isFunclet, isColdCode, unwindSize);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _allocUnwindInfo(IntPtr thisHandle, IntPtr* ppException, byte* pHotCode, byte* pColdCode, uint startOffset, uint endOffset, uint unwindSize, byte* pUnwindBlock, CorJitFuncKind funcKind)
{
var _this = GetThis(thisHandle);
try
{
_this.allocUnwindInfo(pHotCode, pColdCode, startOffset, endOffset, unwindSize, pUnwindBlock, funcKind);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void* _allocGCInfo(IntPtr thisHandle, IntPtr* ppException, UIntPtr size)
{
var _this = GetThis(thisHandle);
try
{
return _this.allocGCInfo(size);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
static void _yieldExecution(IntPtr thisHandle, IntPtr* ppException)
{
var _this = GetThis(thisHandle);
try
{
_this.yieldExecution();
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _setEHcount(IntPtr thisHandle, IntPtr* ppException, uint cEH)
{
var _this = GetThis(thisHandle);
try
{
_this.setEHcount(cEH);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _setEHinfo(IntPtr thisHandle, IntPtr* ppException, uint EHnumber, ref CORINFO_EH_CLAUSE clause)
{
var _this = GetThis(thisHandle);
try
{
_this.setEHinfo(EHnumber, ref clause);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
[return: MarshalAs(UnmanagedType.Bool)]static bool _logMsg(IntPtr thisHandle, IntPtr* ppException, uint level, byte* fmt, IntPtr args)
{
var _this = GetThis(thisHandle);
try
{
return _this.logMsg(level, fmt, args);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(bool);
}
}
static int _doAssert(IntPtr thisHandle, IntPtr* ppException, byte* szFile, int iLine, byte* szExpr)
{
var _this = GetThis(thisHandle);
try
{
return _this.doAssert(szFile, iLine, szExpr);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(int);
}
}
static void _reportFatalError(IntPtr thisHandle, IntPtr* ppException, CorJitResult result)
{
var _this = GetThis(thisHandle);
try
{
_this.reportFatalError(result);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static HRESULT _allocBBProfileBuffer(IntPtr thisHandle, IntPtr* ppException, uint count, ref ProfileBuffer* profileBuffer)
{
var _this = GetThis(thisHandle);
try
{
return _this.allocBBProfileBuffer(count, ref profileBuffer);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(HRESULT);
}
}
static HRESULT _getBBProfileData(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHOD_STRUCT_* ftnHnd, ref uint count, ref ProfileBuffer* profileBuffer, ref uint numRuns)
{
var _this = GetThis(thisHandle);
try
{
return _this.getBBProfileData(ftnHnd, ref count, ref profileBuffer, ref numRuns);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(HRESULT);
}
}
static void _recordCallSite(IntPtr thisHandle, IntPtr* ppException, uint instrOffset, CORINFO_SIG_INFO* callSig, CORINFO_METHOD_STRUCT_* methodHandle)
{
var _this = GetThis(thisHandle);
try
{
_this.recordCallSite(instrOffset, callSig, methodHandle);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static void _recordRelocation(IntPtr thisHandle, IntPtr* ppException, void* location, void* target, ushort fRelocType, ushort slotNum, int addlDelta)
{
var _this = GetThis(thisHandle);
try
{
_this.recordRelocation(location, target, fRelocType, slotNum, addlDelta);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static ushort _getRelocTypeHint(IntPtr thisHandle, IntPtr* ppException, void* target)
{
var _this = GetThis(thisHandle);
try
{
return _this.getRelocTypeHint(target);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(ushort);
}
}
static void _getModuleNativeEntryPointRange(IntPtr thisHandle, IntPtr* ppException, ref void* pStart, ref void* pEnd)
{
var _this = GetThis(thisHandle);
try
{
_this.getModuleNativeEntryPointRange(ref pStart, ref pEnd);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
}
}
static uint _getExpectedTargetArchitecture(IntPtr thisHandle, IntPtr* ppException)
{
var _this = GetThis(thisHandle);
try
{
return _this.getExpectedTargetArchitecture();
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static uint _getJitFlags(IntPtr thisHandle, IntPtr* ppException, ref CORJIT_FLAGS flags, uint sizeInBytes)
{
var _this = GetThis(thisHandle);
try
{
return _this.getJitFlags(ref flags, sizeInBytes);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
static IntPtr GetUnmanagedCallbacks(out Object keepAlive)
{
IntPtr * callbacks = (IntPtr *)Marshal.AllocCoTaskMem(sizeof(IntPtr) * 177);
Object[] delegates = new Object[177];
var d0 = new __getMethodAttribs(_getMethodAttribs);
callbacks[0] = Marshal.GetFunctionPointerForDelegate(d0);
delegates[0] = d0;
var d1 = new __setMethodAttribs(_setMethodAttribs);
callbacks[1] = Marshal.GetFunctionPointerForDelegate(d1);
delegates[1] = d1;
var d2 = new __getMethodSig(_getMethodSig);
callbacks[2] = Marshal.GetFunctionPointerForDelegate(d2);
delegates[2] = d2;
var d3 = new __getMethodInfo(_getMethodInfo);
callbacks[3] = Marshal.GetFunctionPointerForDelegate(d3);
delegates[3] = d3;
var d4 = new __canInline(_canInline);
callbacks[4] = Marshal.GetFunctionPointerForDelegate(d4);
delegates[4] = d4;
var d5 = new __reportInliningDecision(_reportInliningDecision);
callbacks[5] = Marshal.GetFunctionPointerForDelegate(d5);
delegates[5] = d5;
var d6 = new __canTailCall(_canTailCall);
callbacks[6] = Marshal.GetFunctionPointerForDelegate(d6);
delegates[6] = d6;
var d7 = new __reportTailCallDecision(_reportTailCallDecision);
callbacks[7] = Marshal.GetFunctionPointerForDelegate(d7);
delegates[7] = d7;
var d8 = new __getEHinfo(_getEHinfo);
callbacks[8] = Marshal.GetFunctionPointerForDelegate(d8);
delegates[8] = d8;
var d9 = new __getMethodClass(_getMethodClass);
callbacks[9] = Marshal.GetFunctionPointerForDelegate(d9);
delegates[9] = d9;
var d10 = new __getMethodModule(_getMethodModule);
callbacks[10] = Marshal.GetFunctionPointerForDelegate(d10);
delegates[10] = d10;
var d11 = new __getMethodVTableOffset(_getMethodVTableOffset);
callbacks[11] = Marshal.GetFunctionPointerForDelegate(d11);
delegates[11] = d11;
var d12 = new __resolveVirtualMethod(_resolveVirtualMethod);
callbacks[12] = Marshal.GetFunctionPointerForDelegate(d12);
delegates[12] = d12;
var d13 = new __getUnboxedEntry(_getUnboxedEntry);
callbacks[13] = Marshal.GetFunctionPointerForDelegate(d13);
delegates[13] = d13;
var d14 = new __getDefaultEqualityComparerClass(_getDefaultEqualityComparerClass);
callbacks[14] = Marshal.GetFunctionPointerForDelegate(d14);
delegates[14] = d14;
var d15 = new __expandRawHandleIntrinsic(_expandRawHandleIntrinsic);
callbacks[15] = Marshal.GetFunctionPointerForDelegate(d15);
delegates[15] = d15;
var d16 = new __getIntrinsicID(_getIntrinsicID);
callbacks[16] = Marshal.GetFunctionPointerForDelegate(d16);
delegates[16] = d16;
var d17 = new __isInSIMDModule(_isInSIMDModule);
callbacks[17] = Marshal.GetFunctionPointerForDelegate(d17);
delegates[17] = d17;
var d18 = new __getUnmanagedCallConv(_getUnmanagedCallConv);
callbacks[18] = Marshal.GetFunctionPointerForDelegate(d18);
delegates[18] = d18;
var d19 = new __pInvokeMarshalingRequired(_pInvokeMarshalingRequired);
callbacks[19] = Marshal.GetFunctionPointerForDelegate(d19);
delegates[19] = d19;
var d20 = new __satisfiesMethodConstraints(_satisfiesMethodConstraints);
callbacks[20] = Marshal.GetFunctionPointerForDelegate(d20);
delegates[20] = d20;
var d21 = new __isCompatibleDelegate(_isCompatibleDelegate);
callbacks[21] = Marshal.GetFunctionPointerForDelegate(d21);
delegates[21] = d21;
var d22 = new __isInstantiationOfVerifiedGeneric(_isInstantiationOfVerifiedGeneric);
callbacks[22] = Marshal.GetFunctionPointerForDelegate(d22);
delegates[22] = d22;
var d23 = new __initConstraintsForVerification(_initConstraintsForVerification);
callbacks[23] = Marshal.GetFunctionPointerForDelegate(d23);
delegates[23] = d23;
var d24 = new __canSkipMethodVerification(_canSkipMethodVerification);
callbacks[24] = Marshal.GetFunctionPointerForDelegate(d24);
delegates[24] = d24;
var d25 = new __methodMustBeLoadedBeforeCodeIsRun(_methodMustBeLoadedBeforeCodeIsRun);
callbacks[25] = Marshal.GetFunctionPointerForDelegate(d25);
delegates[25] = d25;
var d26 = new __mapMethodDeclToMethodImpl(_mapMethodDeclToMethodImpl);
callbacks[26] = Marshal.GetFunctionPointerForDelegate(d26);
delegates[26] = d26;
var d27 = new __getGSCookie(_getGSCookie);
callbacks[27] = Marshal.GetFunctionPointerForDelegate(d27);
delegates[27] = d27;
var d28 = new __resolveToken(_resolveToken);
callbacks[28] = Marshal.GetFunctionPointerForDelegate(d28);
delegates[28] = d28;
var d29 = new __tryResolveToken(_tryResolveToken);
callbacks[29] = Marshal.GetFunctionPointerForDelegate(d29);
delegates[29] = d29;
var d30 = new __findSig(_findSig);
callbacks[30] = Marshal.GetFunctionPointerForDelegate(d30);
delegates[30] = d30;
var d31 = new __findCallSiteSig(_findCallSiteSig);
callbacks[31] = Marshal.GetFunctionPointerForDelegate(d31);
delegates[31] = d31;
var d32 = new __getTokenTypeAsHandle(_getTokenTypeAsHandle);
callbacks[32] = Marshal.GetFunctionPointerForDelegate(d32);
delegates[32] = d32;
var d33 = new __canSkipVerification(_canSkipVerification);
callbacks[33] = Marshal.GetFunctionPointerForDelegate(d33);
delegates[33] = d33;
var d34 = new __isValidToken(_isValidToken);
callbacks[34] = Marshal.GetFunctionPointerForDelegate(d34);
delegates[34] = d34;
var d35 = new __isValidStringRef(_isValidStringRef);
callbacks[35] = Marshal.GetFunctionPointerForDelegate(d35);
delegates[35] = d35;
var d36 = new __shouldEnforceCallvirtRestriction(_shouldEnforceCallvirtRestriction);
callbacks[36] = Marshal.GetFunctionPointerForDelegate(d36);
delegates[36] = d36;
var d37 = new __asCorInfoType(_asCorInfoType);
callbacks[37] = Marshal.GetFunctionPointerForDelegate(d37);
delegates[37] = d37;
var d38 = new __getClassName(_getClassName);
callbacks[38] = Marshal.GetFunctionPointerForDelegate(d38);
delegates[38] = d38;
var d39 = new __getClassNameFromMetadata(_getClassNameFromMetadata);
callbacks[39] = Marshal.GetFunctionPointerForDelegate(d39);
delegates[39] = d39;
var d40 = new __getTypeInstantiationArgument(_getTypeInstantiationArgument);
callbacks[40] = Marshal.GetFunctionPointerForDelegate(d40);
delegates[40] = d40;
var d41 = new __appendClassName(_appendClassName);
callbacks[41] = Marshal.GetFunctionPointerForDelegate(d41);
delegates[41] = d41;
var d42 = new __isValueClass(_isValueClass);
callbacks[42] = Marshal.GetFunctionPointerForDelegate(d42);
delegates[42] = d42;
var d43 = new __canInlineTypeCheckWithObjectVTable(_canInlineTypeCheckWithObjectVTable);
callbacks[43] = Marshal.GetFunctionPointerForDelegate(d43);
delegates[43] = d43;
var d44 = new __getClassAttribs(_getClassAttribs);
callbacks[44] = Marshal.GetFunctionPointerForDelegate(d44);
delegates[44] = d44;
var d45 = new __isStructRequiringStackAllocRetBuf(_isStructRequiringStackAllocRetBuf);
callbacks[45] = Marshal.GetFunctionPointerForDelegate(d45);
delegates[45] = d45;
var d46 = new __getClassModule(_getClassModule);
callbacks[46] = Marshal.GetFunctionPointerForDelegate(d46);
delegates[46] = d46;
var d47 = new __getModuleAssembly(_getModuleAssembly);
callbacks[47] = Marshal.GetFunctionPointerForDelegate(d47);
delegates[47] = d47;
var d48 = new __getAssemblyName(_getAssemblyName);
callbacks[48] = Marshal.GetFunctionPointerForDelegate(d48);
delegates[48] = d48;
var d49 = new __LongLifetimeMalloc(_LongLifetimeMalloc);
callbacks[49] = Marshal.GetFunctionPointerForDelegate(d49);
delegates[49] = d49;
var d50 = new __LongLifetimeFree(_LongLifetimeFree);
callbacks[50] = Marshal.GetFunctionPointerForDelegate(d50);
delegates[50] = d50;
var d51 = new __getClassModuleIdForStatics(_getClassModuleIdForStatics);
callbacks[51] = Marshal.GetFunctionPointerForDelegate(d51);
delegates[51] = d51;
var d52 = new __getClassSize(_getClassSize);
callbacks[52] = Marshal.GetFunctionPointerForDelegate(d52);
delegates[52] = d52;
var d53 = new __getHeapClassSize(_getHeapClassSize);
callbacks[53] = Marshal.GetFunctionPointerForDelegate(d53);
delegates[53] = d53;
var d54 = new __canAllocateOnStack(_canAllocateOnStack);
callbacks[54] = Marshal.GetFunctionPointerForDelegate(d54);
delegates[54] = d54;
var d55 = new __getClassAlignmentRequirement(_getClassAlignmentRequirement);
callbacks[55] = Marshal.GetFunctionPointerForDelegate(d55);
delegates[55] = d55;
var d56 = new __getClassGClayout(_getClassGClayout);
callbacks[56] = Marshal.GetFunctionPointerForDelegate(d56);
delegates[56] = d56;
var d57 = new __getClassNumInstanceFields(_getClassNumInstanceFields);
callbacks[57] = Marshal.GetFunctionPointerForDelegate(d57);
delegates[57] = d57;
var d58 = new __getFieldInClass(_getFieldInClass);
callbacks[58] = Marshal.GetFunctionPointerForDelegate(d58);
delegates[58] = d58;
var d59 = new __checkMethodModifier(_checkMethodModifier);
callbacks[59] = Marshal.GetFunctionPointerForDelegate(d59);
delegates[59] = d59;
var d60 = new __getNewHelper(_getNewHelper);
callbacks[60] = Marshal.GetFunctionPointerForDelegate(d60);
delegates[60] = d60;
var d61 = new __getNewArrHelper(_getNewArrHelper);
callbacks[61] = Marshal.GetFunctionPointerForDelegate(d61);
delegates[61] = d61;
var d62 = new __getCastingHelper(_getCastingHelper);
callbacks[62] = Marshal.GetFunctionPointerForDelegate(d62);
delegates[62] = d62;
var d63 = new __getSharedCCtorHelper(_getSharedCCtorHelper);
callbacks[63] = Marshal.GetFunctionPointerForDelegate(d63);
delegates[63] = d63;
var d64 = new __getSecurityPrologHelper(_getSecurityPrologHelper);
callbacks[64] = Marshal.GetFunctionPointerForDelegate(d64);
delegates[64] = d64;
var d65 = new __getTypeForBox(_getTypeForBox);
callbacks[65] = Marshal.GetFunctionPointerForDelegate(d65);
delegates[65] = d65;
var d66 = new __getBoxHelper(_getBoxHelper);
callbacks[66] = Marshal.GetFunctionPointerForDelegate(d66);
delegates[66] = d66;
var d67 = new __getUnBoxHelper(_getUnBoxHelper);
callbacks[67] = Marshal.GetFunctionPointerForDelegate(d67);
delegates[67] = d67;
var d68 = new __getReadyToRunHelper(_getReadyToRunHelper);
callbacks[68] = Marshal.GetFunctionPointerForDelegate(d68);
delegates[68] = d68;
var d69 = new __getReadyToRunDelegateCtorHelper(_getReadyToRunDelegateCtorHelper);
callbacks[69] = Marshal.GetFunctionPointerForDelegate(d69);
delegates[69] = d69;
var d70 = new __getHelperName(_getHelperName);
callbacks[70] = Marshal.GetFunctionPointerForDelegate(d70);
delegates[70] = d70;
var d71 = new __initClass(_initClass);
callbacks[71] = Marshal.GetFunctionPointerForDelegate(d71);
delegates[71] = d71;
var d72 = new __classMustBeLoadedBeforeCodeIsRun(_classMustBeLoadedBeforeCodeIsRun);
callbacks[72] = Marshal.GetFunctionPointerForDelegate(d72);
delegates[72] = d72;
var d73 = new __getBuiltinClass(_getBuiltinClass);
callbacks[73] = Marshal.GetFunctionPointerForDelegate(d73);
delegates[73] = d73;
var d74 = new __getTypeForPrimitiveValueClass(_getTypeForPrimitiveValueClass);
callbacks[74] = Marshal.GetFunctionPointerForDelegate(d74);
delegates[74] = d74;
var d75 = new __getTypeForPrimitiveNumericClass(_getTypeForPrimitiveNumericClass);
callbacks[75] = Marshal.GetFunctionPointerForDelegate(d75);
delegates[75] = d75;
var d76 = new __canCast(_canCast);
callbacks[76] = Marshal.GetFunctionPointerForDelegate(d76);
delegates[76] = d76;
var d77 = new __areTypesEquivalent(_areTypesEquivalent);
callbacks[77] = Marshal.GetFunctionPointerForDelegate(d77);
delegates[77] = d77;
var d78 = new __compareTypesForCast(_compareTypesForCast);
callbacks[78] = Marshal.GetFunctionPointerForDelegate(d78);
delegates[78] = d78;
var d79 = new __compareTypesForEquality(_compareTypesForEquality);
callbacks[79] = Marshal.GetFunctionPointerForDelegate(d79);
delegates[79] = d79;
var d80 = new __mergeClasses(_mergeClasses);
callbacks[80] = Marshal.GetFunctionPointerForDelegate(d80);
delegates[80] = d80;
var d81 = new __getParentType(_getParentType);
callbacks[81] = Marshal.GetFunctionPointerForDelegate(d81);
delegates[81] = d81;
var d82 = new __getChildType(_getChildType);
callbacks[82] = Marshal.GetFunctionPointerForDelegate(d82);
delegates[82] = d82;
var d83 = new __satisfiesClassConstraints(_satisfiesClassConstraints);
callbacks[83] = Marshal.GetFunctionPointerForDelegate(d83);
delegates[83] = d83;
var d84 = new __isSDArray(_isSDArray);
callbacks[84] = Marshal.GetFunctionPointerForDelegate(d84);
delegates[84] = d84;
var d85 = new __getArrayRank(_getArrayRank);
callbacks[85] = Marshal.GetFunctionPointerForDelegate(d85);
delegates[85] = d85;
var d86 = new __getArrayInitializationData(_getArrayInitializationData);
callbacks[86] = Marshal.GetFunctionPointerForDelegate(d86);
delegates[86] = d86;
var d87 = new __canAccessClass(_canAccessClass);
callbacks[87] = Marshal.GetFunctionPointerForDelegate(d87);
delegates[87] = d87;
var d88 = new __getFieldName(_getFieldName);
callbacks[88] = Marshal.GetFunctionPointerForDelegate(d88);
delegates[88] = d88;
var d89 = new __getFieldClass(_getFieldClass);
callbacks[89] = Marshal.GetFunctionPointerForDelegate(d89);
delegates[89] = d89;
var d90 = new __getFieldType(_getFieldType);
callbacks[90] = Marshal.GetFunctionPointerForDelegate(d90);
delegates[90] = d90;
var d91 = new __getFieldOffset(_getFieldOffset);
callbacks[91] = Marshal.GetFunctionPointerForDelegate(d91);
delegates[91] = d91;
var d92 = new __isWriteBarrierHelperRequired(_isWriteBarrierHelperRequired);
callbacks[92] = Marshal.GetFunctionPointerForDelegate(d92);
delegates[92] = d92;
var d93 = new __getFieldInfo(_getFieldInfo);
callbacks[93] = Marshal.GetFunctionPointerForDelegate(d93);
delegates[93] = d93;
var d94 = new __isFieldStatic(_isFieldStatic);
callbacks[94] = Marshal.GetFunctionPointerForDelegate(d94);
delegates[94] = d94;
var d95 = new __getBoundaries(_getBoundaries);
callbacks[95] = Marshal.GetFunctionPointerForDelegate(d95);
delegates[95] = d95;
var d96 = new __setBoundaries(_setBoundaries);
callbacks[96] = Marshal.GetFunctionPointerForDelegate(d96);
delegates[96] = d96;
var d97 = new __getVars(_getVars);
callbacks[97] = Marshal.GetFunctionPointerForDelegate(d97);
delegates[97] = d97;
var d98 = new __setVars(_setVars);
callbacks[98] = Marshal.GetFunctionPointerForDelegate(d98);
delegates[98] = d98;
var d99 = new __allocateArray(_allocateArray);
callbacks[99] = Marshal.GetFunctionPointerForDelegate(d99);
delegates[99] = d99;
var d100 = new __freeArray(_freeArray);
callbacks[100] = Marshal.GetFunctionPointerForDelegate(d100);
delegates[100] = d100;
var d101 = new __getArgNext(_getArgNext);
callbacks[101] = Marshal.GetFunctionPointerForDelegate(d101);
delegates[101] = d101;
var d102 = new __getArgType(_getArgType);
callbacks[102] = Marshal.GetFunctionPointerForDelegate(d102);
delegates[102] = d102;
var d103 = new __getArgClass(_getArgClass);
callbacks[103] = Marshal.GetFunctionPointerForDelegate(d103);
delegates[103] = d103;
var d104 = new __getHFAType(_getHFAType);
callbacks[104] = Marshal.GetFunctionPointerForDelegate(d104);
delegates[104] = d104;
var d105 = new __GetErrorHRESULT(_GetErrorHRESULT);
callbacks[105] = Marshal.GetFunctionPointerForDelegate(d105);
delegates[105] = d105;
var d106 = new __GetErrorMessage(_GetErrorMessage);
callbacks[106] = Marshal.GetFunctionPointerForDelegate(d106);
delegates[106] = d106;
var d107 = new __FilterException(_FilterException);
callbacks[107] = Marshal.GetFunctionPointerForDelegate(d107);
delegates[107] = d107;
var d108 = new __HandleException(_HandleException);
callbacks[108] = Marshal.GetFunctionPointerForDelegate(d108);
delegates[108] = d108;
var d109 = new __ThrowExceptionForJitResult(_ThrowExceptionForJitResult);
callbacks[109] = Marshal.GetFunctionPointerForDelegate(d109);
delegates[109] = d109;
var d110 = new __ThrowExceptionForHelper(_ThrowExceptionForHelper);
callbacks[110] = Marshal.GetFunctionPointerForDelegate(d110);
delegates[110] = d110;
var d111 = new __runWithErrorTrap(_runWithErrorTrap);
callbacks[111] = Marshal.GetFunctionPointerForDelegate(d111);
delegates[111] = d111;
var d112 = new __getEEInfo(_getEEInfo);
callbacks[112] = Marshal.GetFunctionPointerForDelegate(d112);
delegates[112] = d112;
var d113 = new __getJitTimeLogFilename(_getJitTimeLogFilename);
callbacks[113] = Marshal.GetFunctionPointerForDelegate(d113);
delegates[113] = d113;
var d114 = new __getMethodDefFromMethod(_getMethodDefFromMethod);
callbacks[114] = Marshal.GetFunctionPointerForDelegate(d114);
delegates[114] = d114;
var d115 = new __getMethodName(_getMethodName);
callbacks[115] = Marshal.GetFunctionPointerForDelegate(d115);
delegates[115] = d115;
var d116 = new __getMethodNameFromMetadata(_getMethodNameFromMetadata);
callbacks[116] = Marshal.GetFunctionPointerForDelegate(d116);
delegates[116] = d116;
var d117 = new __getMethodHash(_getMethodHash);
callbacks[117] = Marshal.GetFunctionPointerForDelegate(d117);
delegates[117] = d117;
var d118 = new __findNameOfToken(_findNameOfToken);
callbacks[118] = Marshal.GetFunctionPointerForDelegate(d118);
delegates[118] = d118;
var d119 = new __getSystemVAmd64PassStructInRegisterDescriptor(_getSystemVAmd64PassStructInRegisterDescriptor);
callbacks[119] = Marshal.GetFunctionPointerForDelegate(d119);
delegates[119] = d119;
var d120 = new __getThreadTLSIndex(_getThreadTLSIndex);
callbacks[120] = Marshal.GetFunctionPointerForDelegate(d120);
delegates[120] = d120;
var d121 = new __getInlinedCallFrameVptr(_getInlinedCallFrameVptr);
callbacks[121] = Marshal.GetFunctionPointerForDelegate(d121);
delegates[121] = d121;
var d122 = new __getAddrOfCaptureThreadGlobal(_getAddrOfCaptureThreadGlobal);
callbacks[122] = Marshal.GetFunctionPointerForDelegate(d122);
delegates[122] = d122;
var d123 = new __getHelperFtn(_getHelperFtn);
callbacks[123] = Marshal.GetFunctionPointerForDelegate(d123);
delegates[123] = d123;
var d124 = new __getFunctionEntryPoint(_getFunctionEntryPoint);
callbacks[124] = Marshal.GetFunctionPointerForDelegate(d124);
delegates[124] = d124;
var d125 = new __getFunctionFixedEntryPoint(_getFunctionFixedEntryPoint);
callbacks[125] = Marshal.GetFunctionPointerForDelegate(d125);
delegates[125] = d125;
var d126 = new __getMethodSync(_getMethodSync);
callbacks[126] = Marshal.GetFunctionPointerForDelegate(d126);
delegates[126] = d126;
var d127 = new __getLazyStringLiteralHelper(_getLazyStringLiteralHelper);
callbacks[127] = Marshal.GetFunctionPointerForDelegate(d127);
delegates[127] = d127;
var d128 = new __embedModuleHandle(_embedModuleHandle);
callbacks[128] = Marshal.GetFunctionPointerForDelegate(d128);
delegates[128] = d128;
var d129 = new __embedClassHandle(_embedClassHandle);
callbacks[129] = Marshal.GetFunctionPointerForDelegate(d129);
delegates[129] = d129;
var d130 = new __embedMethodHandle(_embedMethodHandle);
callbacks[130] = Marshal.GetFunctionPointerForDelegate(d130);
delegates[130] = d130;
var d131 = new __embedFieldHandle(_embedFieldHandle);
callbacks[131] = Marshal.GetFunctionPointerForDelegate(d131);
delegates[131] = d131;
var d132 = new __embedGenericHandle(_embedGenericHandle);
callbacks[132] = Marshal.GetFunctionPointerForDelegate(d132);
delegates[132] = d132;
var d133 = new __getLocationOfThisType(_getLocationOfThisType);
callbacks[133] = Marshal.GetFunctionPointerForDelegate(d133);
delegates[133] = d133;
var d134 = new __getPInvokeUnmanagedTarget(_getPInvokeUnmanagedTarget);
callbacks[134] = Marshal.GetFunctionPointerForDelegate(d134);
delegates[134] = d134;
var d135 = new __getAddressOfPInvokeFixup(_getAddressOfPInvokeFixup);
callbacks[135] = Marshal.GetFunctionPointerForDelegate(d135);
delegates[135] = d135;
var d136 = new __getAddressOfPInvokeTarget(_getAddressOfPInvokeTarget);
callbacks[136] = Marshal.GetFunctionPointerForDelegate(d136);
delegates[136] = d136;
var d137 = new __GetCookieForPInvokeCalliSig(_GetCookieForPInvokeCalliSig);
callbacks[137] = Marshal.GetFunctionPointerForDelegate(d137);
delegates[137] = d137;
var d138 = new __canGetCookieForPInvokeCalliSig(_canGetCookieForPInvokeCalliSig);
callbacks[138] = Marshal.GetFunctionPointerForDelegate(d138);
delegates[138] = d138;
var d139 = new __getJustMyCodeHandle(_getJustMyCodeHandle);
callbacks[139] = Marshal.GetFunctionPointerForDelegate(d139);
delegates[139] = d139;
var d140 = new __GetProfilingHandle(_GetProfilingHandle);
callbacks[140] = Marshal.GetFunctionPointerForDelegate(d140);
delegates[140] = d140;
var d141 = new __getCallInfo(_getCallInfo);
callbacks[141] = Marshal.GetFunctionPointerForDelegate(d141);
delegates[141] = d141;
var d142 = new __canAccessFamily(_canAccessFamily);
callbacks[142] = Marshal.GetFunctionPointerForDelegate(d142);
delegates[142] = d142;
var d143 = new __isRIDClassDomainID(_isRIDClassDomainID);
callbacks[143] = Marshal.GetFunctionPointerForDelegate(d143);
delegates[143] = d143;
var d144 = new __getClassDomainID(_getClassDomainID);
callbacks[144] = Marshal.GetFunctionPointerForDelegate(d144);
delegates[144] = d144;
var d145 = new __getFieldAddress(_getFieldAddress);
callbacks[145] = Marshal.GetFunctionPointerForDelegate(d145);
delegates[145] = d145;
var d146 = new __getStaticFieldCurrentClass(_getStaticFieldCurrentClass);
callbacks[146] = Marshal.GetFunctionPointerForDelegate(d146);
delegates[146] = d146;
var d147 = new __getVarArgsHandle(_getVarArgsHandle);
callbacks[147] = Marshal.GetFunctionPointerForDelegate(d147);
delegates[147] = d147;
var d148 = new __canGetVarArgsHandle(_canGetVarArgsHandle);
callbacks[148] = Marshal.GetFunctionPointerForDelegate(d148);
delegates[148] = d148;
var d149 = new __constructStringLiteral(_constructStringLiteral);
callbacks[149] = Marshal.GetFunctionPointerForDelegate(d149);
delegates[149] = d149;
var d150 = new __emptyStringLiteral(_emptyStringLiteral);
callbacks[150] = Marshal.GetFunctionPointerForDelegate(d150);
delegates[150] = d150;
var d151 = new __getFieldThreadLocalStoreID(_getFieldThreadLocalStoreID);
callbacks[151] = Marshal.GetFunctionPointerForDelegate(d151);
delegates[151] = d151;
var d152 = new __setOverride(_setOverride);
callbacks[152] = Marshal.GetFunctionPointerForDelegate(d152);
delegates[152] = d152;
var d153 = new __addActiveDependency(_addActiveDependency);
callbacks[153] = Marshal.GetFunctionPointerForDelegate(d153);
delegates[153] = d153;
var d154 = new __GetDelegateCtor(_GetDelegateCtor);
callbacks[154] = Marshal.GetFunctionPointerForDelegate(d154);
delegates[154] = d154;
var d155 = new __MethodCompileComplete(_MethodCompileComplete);
callbacks[155] = Marshal.GetFunctionPointerForDelegate(d155);
delegates[155] = d155;
var d156 = new __getTailCallCopyArgsThunk(_getTailCallCopyArgsThunk);
callbacks[156] = Marshal.GetFunctionPointerForDelegate(d156);
delegates[156] = d156;
var d157 = new __convertPInvokeCalliToCall(_convertPInvokeCalliToCall);
callbacks[157] = Marshal.GetFunctionPointerForDelegate(d157);
delegates[157] = d157;
var d158 = new __getMemoryManager