C# Class Python.Runtime.NativeCall

Provides support for calling native code indirectly through function pointers. Most of the important parts of the Python C API can just be wrapped with p/invoke, but there are some situations (specifically, calling functions through Python type structures) where we need to call functions indirectly.
Exibir arquivo Open project: fkarb/pythonnet_old Class Usage Examples

Public Properties

Property Type Description
Impl INativeCall

Public Methods

Method Description
Call_3 ( IntPtr fp, IntPtr a1, IntPtr a2, IntPtr a3 ) : IntPtr
Int_Call_3 ( IntPtr fp, IntPtr a1, IntPtr a2, IntPtr a3 ) : int
Void_Call_1 ( IntPtr fp, IntPtr a1 ) : void

Private Methods

Method Description
GenerateThunk ( TypeBuilder tb, MethodInfo method ) : void
NativeCall ( ) : System

Method Details

Call_3() public static method

public static Call_3 ( IntPtr fp, IntPtr a1, IntPtr a2, IntPtr a3 ) : IntPtr
fp IntPtr
a1 IntPtr
a2 IntPtr
a3 IntPtr
return IntPtr

Int_Call_3() public static method

public static Int_Call_3 ( IntPtr fp, IntPtr a1, IntPtr a2, IntPtr a3 ) : int
fp IntPtr
a1 IntPtr
a2 IntPtr
a3 IntPtr
return int

Void_Call_1() public static method

public static Void_Call_1 ( IntPtr fp, IntPtr a1 ) : void
fp IntPtr
a1 IntPtr
return void

Property Details

Impl public_oe static_oe property

public static INativeCall Impl
return INativeCall