C# Class IronPython.Modules.NativeFunctions

Native functions used for exposing ctypes functionality.
Mostrar archivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
GetMemMoveAddress ( ) : IntPtr
GetMemSetAddress ( ) : IntPtr
LoadDLL ( string filename, int flags ) : IntPtr
LoadFunction ( IntPtr module, IntPtr ordinal ) : IntPtr
LoadFunction ( IntPtr module, string functionName ) : IntPtr

Private Methods

Method Description
Calloc ( IntPtr size ) : IntPtr
CopyMemory ( IntPtr destination, IntPtr source, IntPtr Length ) : void
FreeLibrary ( IntPtr hModule ) : bool
GetProcAddress ( IntPtr module, IntPtr ordinal ) : IntPtr
GetProcAddress ( IntPtr module, string lpFileName ) : IntPtr
LoadLibrary ( string lpFileName ) : IntPtr
LocalAlloc ( uint flags, IntPtr size ) : IntPtr
MemSet ( IntPtr dest, byte value, IntPtr length ) : IntPtr

Helper function for implementing memset. Could be more efficient if we could P/Invoke or call some otherwise native code to do this.

MoveMemory ( IntPtr dest, IntPtr src, IntPtr length ) : IntPtr
RtlMoveMemory ( IntPtr Destination, IntPtr src, IntPtr length ) : void
SetLastError ( int errorCode ) : void
dlopen ( string filename, int flags ) : IntPtr
dlsym ( IntPtr handle, string symbol ) : IntPtr

Method Details

GetMemMoveAddress() public static method

public static GetMemMoveAddress ( ) : IntPtr
return System.IntPtr

GetMemSetAddress() public static method

public static GetMemSetAddress ( ) : IntPtr
return System.IntPtr

LoadDLL() public static method

public static LoadDLL ( string filename, int flags ) : IntPtr
filename string
flags int
return System.IntPtr

LoadFunction() public static method

public static LoadFunction ( IntPtr module, IntPtr ordinal ) : IntPtr
module System.IntPtr
ordinal System.IntPtr
return System.IntPtr

LoadFunction() public static method

public static LoadFunction ( IntPtr module, string functionName ) : IntPtr
module System.IntPtr
functionName string
return System.IntPtr