C# Class Mono.Cxxi.Abi.CppAbi

Afficher le fichier Open project: kthompson/cxxi

Protected Properties

Свойство Type Description
cppip_dispose System.Reflection.MethodInfo
cppip_fromnative System.Reflection.ConstructorInfo
cppip_fromsize System.Reflection.ConstructorInfo
cppip_fromtype_managed System.Reflection.ConstructorInfo
cppip_managedalloc System.Reflection.MethodInfo
cppip_native System.Reflection.MethodInfo
cppip_tomanaged System.Reflection.MethodInfo
cppip_tomanaged_size System.Reflection.MethodInfo
cppobj_native System.Reflection.MethodInfo
intptr_zero System.Reflection.FieldInfo
marshal_offsetof System.Reflection.MethodInfo
marshal_ptrtostructure System.Reflection.MethodInfo
marshal_structuretoptr System.Reflection.MethodInfo
marshal_writeintptr System.Reflection.MethodInfo
notimplementedexception System.Reflection.ConstructorInfo
type_gettypefromhandle System.Reflection.MethodInfo
typeinfo_adjnative System.Reflection.MethodInfo
typeinfo_adjvcall System.Reflection.MethodInfo
typeinfo_fieldoffset System.Reflection.MethodInfo
typeinfo_nativesize System.Reflection.MethodInfo
typeinfo_vtable System.Reflection.MethodInfo
vtable_initinstance System.Reflection.MethodInfo
vtable_override_filter MemberFilter
vtable_resetinstance System.Reflection.MethodInfo
wrapper_to_typeinfo CppTypeInfo>.Dictionary

Méthodes publiques

Méthode Description
GetCallingConvention ( MethodInfo methodInfo ) : CallingConvention?
GetMethodType ( CppTypeInfo typeInfo, MethodInfo imethod ) : MethodType
GetPInvokeSignature ( CppTypeInfo typeInfo, MethodInfo method ) : PInvokeSignature
GetVirtualMethodSlots ( CppTypeInfo typeInfo, Type interfaceType ) : IEnumerable
ImplementClass ( CppTypeInfo typeInfo ) : ICppClass
MakeTypeInfo ( CppLibrary lib, string typeName, Type interfaceType, Type layoutType, Type wrapperType ) : CppTypeInfo
ToPInvokeType ( Type t, ICustomAttributeProvider icap ) : Type

Méthodes protégées

Méthode Description
DefineImplType ( CppTypeInfo typeInfo ) : void
DefineMethod ( CppTypeInfo typeInfo, PInvokeSignature psig, int &vtableIndex ) : MethodBuilder
DefineProperty ( CppTypeInfo typeInfo, PropertyInfo property ) : PropertyBuilder
EmitCallVTableMethod ( CppTypeInfo typeInfo, MethodInfo method, int stackHeight, bool throwOnNoVTable ) : void
EmitCheckDisposed ( ILGenerator il, LocalBuilder native, MethodType methodType ) : void
EmitCheckManagedAlloc ( ILGenerator il, LocalBuilder cppip ) : void
EmitConstruct ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder cppInstancePtr, LocalBuilder nativePtr ) : void
EmitCreateCppObjectFromNative ( ILGenerator il, Type targetType, LocalBuilder cppip ) : void
EmitDestruct ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder cppInstancePtr, LocalBuilder nativePtr ) : void
EmitInboundMarshal ( ILGenerator il, Type nativeType, Type targetType ) : void
EmitInitVTable ( CppTypeInfo typeInfo, LocalBuilder cppip ) : void
EmitLoadInstancePtr ( ILGenerator il, CppTypeInfo typeInfo, bool isVirtual, Type firstParamType, LocalBuilder &cppip, LocalBuilder &native ) : void
EmitLoadVTable ( CppTypeInfo typeInfo ) : void
EmitManagedAlloc ( CppTypeInfo typeInfo, MethodInfo interfaceMethod ) : void
EmitNativeCall ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder nativePtr ) : void
EmitOutboundMarshal ( ILGenerator il, Type managedType, Type targetType ) : void
EmitPrepareVirtualCall ( CppTypeInfo typeInfo, LocalBuilder cppInstancePtr, int vtableIndex ) : MethodInfo
EmitResetVTable ( CppTypeInfo typeInfo, LocalBuilder cppip ) : void
FindManagedOverrideTarget ( Type wrapper, MethodInfo interfaceMethod ) : MethodInfo
GetMangledMethodName ( CppTypeInfo typeInfo, MethodInfo methodInfo ) : string
GetMangledVTableName ( CppTypeInfo typeInfo ) : string
GetMethodBuilder ( CppTypeInfo typeInfo, MethodInfo interfaceMethod ) : MethodBuilder
GetMethods ( Type interfaceType ) : IEnumerable
GetPInvokeForMethod ( CppTypeInfo typeInfo, PInvokeSignature sig ) : MethodBuilder
GetProperties ( Type interfaceType ) : IEnumerable
GetTypeInfo ( Type otherWrapperType ) : CppTypeInfo
ReturnByHiddenArgument ( CppTypeInfo typeInfo, MethodInfo method ) : bool

Private Methods

Méthode Description
GetManagedOverrideTrampoline ( CppTypeInfo typeInfo, int vtableIndex ) : Delegate

Method Details

DefineImplType() protected méthode

protected DefineImplType ( CppTypeInfo typeInfo ) : void
typeInfo CppTypeInfo
Résultat void

DefineMethod() protected méthode

protected DefineMethod ( CppTypeInfo typeInfo, PInvokeSignature psig, int &vtableIndex ) : MethodBuilder
typeInfo CppTypeInfo
psig PInvokeSignature
vtableIndex int
Résultat MethodBuilder

DefineProperty() protected méthode

protected DefineProperty ( CppTypeInfo typeInfo, PropertyInfo property ) : PropertyBuilder
typeInfo CppTypeInfo
property System.Reflection.PropertyInfo
Résultat PropertyBuilder

EmitCallVTableMethod() protected méthode

protected EmitCallVTableMethod ( CppTypeInfo typeInfo, MethodInfo method, int stackHeight, bool throwOnNoVTable ) : void
typeInfo CppTypeInfo
method System.Reflection.MethodInfo
stackHeight int
throwOnNoVTable bool
Résultat void

EmitCheckDisposed() protected méthode

protected EmitCheckDisposed ( ILGenerator il, LocalBuilder native, MethodType methodType ) : void
il ILGenerator
native LocalBuilder
methodType MethodType
Résultat void

EmitCheckManagedAlloc() protected méthode

protected EmitCheckManagedAlloc ( ILGenerator il, LocalBuilder cppip ) : void
il ILGenerator
cppip LocalBuilder
Résultat void

EmitConstruct() protected méthode

protected EmitConstruct ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder cppInstancePtr, LocalBuilder nativePtr ) : void
typeInfo CppTypeInfo
nativeMethod System.Reflection.MethodInfo
psig PInvokeSignature
cppInstancePtr LocalBuilder
nativePtr LocalBuilder
Résultat void

EmitCreateCppObjectFromNative() protected méthode

protected EmitCreateCppObjectFromNative ( ILGenerator il, Type targetType, LocalBuilder cppip ) : void
il ILGenerator
targetType System.Type
cppip LocalBuilder
Résultat void

EmitDestruct() protected méthode

protected EmitDestruct ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder cppInstancePtr, LocalBuilder nativePtr ) : void
typeInfo CppTypeInfo
nativeMethod System.Reflection.MethodInfo
psig PInvokeSignature
cppInstancePtr LocalBuilder
nativePtr LocalBuilder
Résultat void

EmitInboundMarshal() protected méthode

protected EmitInboundMarshal ( ILGenerator il, Type nativeType, Type targetType ) : void
il ILGenerator
nativeType System.Type
targetType System.Type
Résultat void

EmitInitVTable() protected méthode

protected EmitInitVTable ( CppTypeInfo typeInfo, LocalBuilder cppip ) : void
typeInfo CppTypeInfo
cppip LocalBuilder
Résultat void

EmitLoadInstancePtr() protected méthode

protected EmitLoadInstancePtr ( ILGenerator il, CppTypeInfo typeInfo, bool isVirtual, Type firstParamType, LocalBuilder &cppip, LocalBuilder &native ) : void
il ILGenerator
typeInfo CppTypeInfo
isVirtual bool
firstParamType System.Type
cppip LocalBuilder
native LocalBuilder
Résultat void

EmitLoadVTable() protected méthode

protected EmitLoadVTable ( CppTypeInfo typeInfo ) : void
typeInfo CppTypeInfo
Résultat void

EmitManagedAlloc() protected méthode

protected EmitManagedAlloc ( CppTypeInfo typeInfo, MethodInfo interfaceMethod ) : void
typeInfo CppTypeInfo
interfaceMethod System.Reflection.MethodInfo
Résultat void

EmitNativeCall() protected méthode

protected EmitNativeCall ( CppTypeInfo typeInfo, MethodInfo nativeMethod, PInvokeSignature psig, LocalBuilder nativePtr ) : void
typeInfo CppTypeInfo
nativeMethod System.Reflection.MethodInfo
psig PInvokeSignature
nativePtr LocalBuilder
Résultat void

EmitOutboundMarshal() protected méthode

protected EmitOutboundMarshal ( ILGenerator il, Type managedType, Type targetType ) : void
il ILGenerator
managedType System.Type
targetType System.Type
Résultat void

EmitPrepareVirtualCall() protected méthode

protected EmitPrepareVirtualCall ( CppTypeInfo typeInfo, LocalBuilder cppInstancePtr, int vtableIndex ) : MethodInfo
typeInfo CppTypeInfo
cppInstancePtr LocalBuilder
vtableIndex int
Résultat System.Reflection.MethodInfo

EmitResetVTable() protected méthode

protected EmitResetVTable ( CppTypeInfo typeInfo, LocalBuilder cppip ) : void
typeInfo CppTypeInfo
cppip LocalBuilder
Résultat void

FindManagedOverrideTarget() protected méthode

protected FindManagedOverrideTarget ( Type wrapper, MethodInfo interfaceMethod ) : MethodInfo
wrapper System.Type
interfaceMethod System.Reflection.MethodInfo
Résultat System.Reflection.MethodInfo

GetCallingConvention() public abstract méthode

public abstract GetCallingConvention ( MethodInfo methodInfo ) : CallingConvention?
methodInfo System.Reflection.MethodInfo
Résultat CallingConvention?

GetMangledMethodName() protected abstract méthode

protected abstract GetMangledMethodName ( CppTypeInfo typeInfo, MethodInfo methodInfo ) : string
typeInfo CppTypeInfo
methodInfo System.Reflection.MethodInfo
Résultat string

GetMangledVTableName() protected méthode

protected GetMangledVTableName ( CppTypeInfo typeInfo ) : string
typeInfo CppTypeInfo
Résultat string

GetMethodBuilder() protected méthode

protected GetMethodBuilder ( CppTypeInfo typeInfo, MethodInfo interfaceMethod ) : MethodBuilder
typeInfo CppTypeInfo
interfaceMethod System.Reflection.MethodInfo
Résultat MethodBuilder

GetMethodType() public méthode

public GetMethodType ( CppTypeInfo typeInfo, MethodInfo imethod ) : MethodType
typeInfo CppTypeInfo
imethod System.Reflection.MethodInfo
Résultat MethodType

GetMethods() protected méthode

protected GetMethods ( Type interfaceType ) : IEnumerable
interfaceType System.Type
Résultat IEnumerable

GetPInvokeForMethod() protected méthode

protected GetPInvokeForMethod ( CppTypeInfo typeInfo, PInvokeSignature sig ) : MethodBuilder
typeInfo CppTypeInfo
sig PInvokeSignature
Résultat MethodBuilder

GetPInvokeSignature() public méthode

public GetPInvokeSignature ( CppTypeInfo typeInfo, MethodInfo method ) : PInvokeSignature
typeInfo CppTypeInfo
method System.Reflection.MethodInfo
Résultat PInvokeSignature

GetProperties() protected méthode

protected GetProperties ( Type interfaceType ) : IEnumerable
interfaceType System.Type
Résultat IEnumerable

GetTypeInfo() protected méthode

protected GetTypeInfo ( Type otherWrapperType ) : CppTypeInfo
otherWrapperType System.Type
Résultat CppTypeInfo

GetVirtualMethodSlots() public méthode

public GetVirtualMethodSlots ( CppTypeInfo typeInfo, Type interfaceType ) : IEnumerable
typeInfo CppTypeInfo
interfaceType System.Type
Résultat IEnumerable

ImplementClass() public méthode

public ImplementClass ( CppTypeInfo typeInfo ) : ICppClass
typeInfo CppTypeInfo
Résultat ICppClass

MakeTypeInfo() public méthode

public MakeTypeInfo ( CppLibrary lib, string typeName, Type interfaceType, Type layoutType, Type wrapperType ) : CppTypeInfo
lib CppLibrary
typeName string
interfaceType System.Type
layoutType System.Type
wrapperType System.Type
Résultat CppTypeInfo

ReturnByHiddenArgument() protected méthode

protected ReturnByHiddenArgument ( CppTypeInfo typeInfo, MethodInfo method ) : bool
typeInfo CppTypeInfo
method System.Reflection.MethodInfo
Résultat bool

ToPInvokeType() public méthode

public ToPInvokeType ( Type t, ICustomAttributeProvider icap ) : Type
t System.Type
icap ICustomAttributeProvider
Résultat System.Type

Property Details

cppip_dispose protected_oe static_oe property

protected static MethodInfo,System.Reflection cppip_dispose
Résultat System.Reflection.MethodInfo

cppip_fromnative protected_oe static_oe property

protected static ConstructorInfo,System.Reflection cppip_fromnative
Résultat System.Reflection.ConstructorInfo

cppip_fromsize protected_oe static_oe property

protected static ConstructorInfo,System.Reflection cppip_fromsize
Résultat System.Reflection.ConstructorInfo

cppip_fromtype_managed protected_oe static_oe property

protected static ConstructorInfo,System.Reflection cppip_fromtype_managed
Résultat System.Reflection.ConstructorInfo

cppip_managedalloc protected_oe static_oe property

protected static MethodInfo,System.Reflection cppip_managedalloc
Résultat System.Reflection.MethodInfo

cppip_native protected_oe static_oe property

protected static MethodInfo,System.Reflection cppip_native
Résultat System.Reflection.MethodInfo

cppip_tomanaged protected_oe static_oe property

protected static MethodInfo,System.Reflection cppip_tomanaged
Résultat System.Reflection.MethodInfo

cppip_tomanaged_size protected_oe static_oe property

protected static MethodInfo,System.Reflection cppip_tomanaged_size
Résultat System.Reflection.MethodInfo

cppobj_native protected_oe static_oe property

protected static MethodInfo,System.Reflection cppobj_native
Résultat System.Reflection.MethodInfo

intptr_zero protected_oe static_oe property

protected static FieldInfo,System.Reflection intptr_zero
Résultat System.Reflection.FieldInfo

marshal_offsetof protected_oe static_oe property

protected static MethodInfo,System.Reflection marshal_offsetof
Résultat System.Reflection.MethodInfo

marshal_ptrtostructure protected_oe static_oe property

protected static MethodInfo,System.Reflection marshal_ptrtostructure
Résultat System.Reflection.MethodInfo

marshal_structuretoptr protected_oe static_oe property

protected static MethodInfo,System.Reflection marshal_structuretoptr
Résultat System.Reflection.MethodInfo

marshal_writeintptr protected_oe static_oe property

protected static MethodInfo,System.Reflection marshal_writeintptr
Résultat System.Reflection.MethodInfo

notimplementedexception protected_oe static_oe property

protected static ConstructorInfo,System.Reflection notimplementedexception
Résultat System.Reflection.ConstructorInfo

type_gettypefromhandle protected_oe static_oe property

protected static MethodInfo,System.Reflection type_gettypefromhandle
Résultat System.Reflection.MethodInfo

typeinfo_adjnative protected_oe static_oe property

protected static MethodInfo,System.Reflection typeinfo_adjnative
Résultat System.Reflection.MethodInfo

typeinfo_adjvcall protected_oe static_oe property

protected static MethodInfo,System.Reflection typeinfo_adjvcall
Résultat System.Reflection.MethodInfo

typeinfo_fieldoffset protected_oe static_oe property

protected static MethodInfo,System.Reflection typeinfo_fieldoffset
Résultat System.Reflection.MethodInfo

typeinfo_nativesize protected_oe static_oe property

protected static MethodInfo,System.Reflection typeinfo_nativesize
Résultat System.Reflection.MethodInfo

typeinfo_vtable protected_oe static_oe property

protected static MethodInfo,System.Reflection typeinfo_vtable
Résultat System.Reflection.MethodInfo

vtable_initinstance protected_oe static_oe property

protected static MethodInfo,System.Reflection vtable_initinstance
Résultat System.Reflection.MethodInfo

vtable_override_filter protected_oe property

protected MemberFilter vtable_override_filter
Résultat MemberFilter

vtable_resetinstance protected_oe static_oe property

protected static MethodInfo,System.Reflection vtable_resetinstance
Résultat System.Reflection.MethodInfo

wrapper_to_typeinfo protected_oe property

protected Dictionary wrapper_to_typeinfo
Résultat CppTypeInfo>.Dictionary