C# Class IronPython.Modules.CTypes.SimpleType

Inheritance: IronPython.Runtime.Types.PythonType, INativeType
Show file Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
EmitInt32ToObject void
EmitInt64ToObject void
GetDoubleReturn object
GetIntReturn object
GetIntReturn object
GetIntReturn object
GetIntReturn object
GetObjectReturn object
GetPythonTypeWorker System.Type
GetSingleReturn object
INativeType IronPython.Modules.MarshalCleanup
INativeType System.Type
INativeType object
INativeType object
INativeType void
MakeSystemType IronPython.Runtime.Types.PythonType
MarshalCharPointer IronPython.Modules.MarshalCleanup
MarshalWCharPointer void
ReadChar char
SimpleType System
TryArrayToWCharPtrConversion void
TryBytesConversion void
TryToCharPtrConversion void

Public Methods

Method Description
SimpleType ( CodeContext context, string name, PythonTuple bases, PythonDictionary dict ) : System
from_address ( CodeContext context, BigInteger address ) : SimpleCData
from_address ( CodeContext context, IntPtr ptr ) : SimpleCData
from_address ( CodeContext context, int address ) : SimpleCData
from_buffer ( IronPython.Modules.ArrayModule array, [ offset ) : SimpleCData
from_buffer_copy ( IronPython.Modules.ArrayModule array, [ offset ) : SimpleCData
from_param ( object obj ) : object

Converts an object into a function call parameter.

in_dll ( CodeContext context, object library, string name ) : SimpleCData
operator ( ) : ArrayType

Private Methods

Method Description
EmitInt32ToObject ( ILGenerator method, IronPython.Modules.LocalOrArg value ) : void
EmitInt64ToObject ( ILGenerator method, IronPython.Modules.LocalOrArg value ) : void
GetDoubleReturn ( long p ) : object
GetIntReturn ( int value ) : object
GetIntReturn ( long value ) : object
GetIntReturn ( uint value ) : object
GetIntReturn ( ulong value ) : object
GetObjectReturn ( IntPtr intPtr ) : object
GetPythonTypeWorker ( ) : Type
GetSingleReturn ( int p ) : object
INativeType ( ILGenerator method, IronPython.Modules.LocalOrArg argIndex, List constantPool, int constantPoolArgument ) : IronPython.Modules.MarshalCleanup
INativeType ( ) : Type
INativeType ( MemoryHolder owner, int offset, object value ) : object
INativeType ( MemoryHolder owner, object readingFrom, int offset, bool raw ) : object
INativeType ( ILGenerator method, IronPython.Modules.LocalOrArg value, List constantPool, int constantPoolArgument ) : void
MakeSystemType ( Type underlyingSystemType ) : IronPython.Runtime.Types.PythonType
MarshalCharPointer ( ILGenerator method, IronPython.Modules.LocalOrArg argIndex ) : IronPython.Modules.MarshalCleanup
MarshalWCharPointer ( ILGenerator method, IronPython.Modules.LocalOrArg argIndex ) : void
ReadChar ( MemoryHolder owner, int offset ) : char

Helper function for reading char/wchar's. This is used for reading from arrays and pointers to avoid creating lots of 1-char strings.

SimpleType ( Type underlyingSystemType ) : System
TryArrayToWCharPtrConversion ( ILGenerator method, IronPython.Modules.LocalOrArg argIndex, Type argumentType, Label done ) : void
TryBytesConversion ( ILGenerator method, Label done ) : void
TryToCharPtrConversion ( ILGenerator method, IronPython.Modules.LocalOrArg argIndex, Type argumentType, Label done ) : void

Method Details

SimpleType() public method

public SimpleType ( CodeContext context, string name, PythonTuple bases, PythonDictionary dict ) : System
context CodeContext
name string
bases PythonTuple
dict PythonDictionary
return System

from_address() public method

public from_address ( CodeContext context, BigInteger address ) : SimpleCData
context CodeContext
address BigInteger
return SimpleCData

from_address() public method

public from_address ( CodeContext context, IntPtr ptr ) : SimpleCData
context CodeContext
ptr System.IntPtr
return SimpleCData

from_address() public method

public from_address ( CodeContext context, int address ) : SimpleCData
context CodeContext
address int
return SimpleCData

from_buffer() public method

public from_buffer ( IronPython.Modules.ArrayModule array, [ offset ) : SimpleCData
array IronPython.Modules.ArrayModule
offset [
return SimpleCData

from_buffer_copy() public method

public from_buffer_copy ( IronPython.Modules.ArrayModule array, [ offset ) : SimpleCData
array IronPython.Modules.ArrayModule
offset [
return SimpleCData

from_param() public method

Converts an object into a function call parameter.
public from_param ( object obj ) : object
obj object
return object

in_dll() public method

public in_dll ( CodeContext context, object library, string name ) : SimpleCData
context CodeContext
library object
name string
return SimpleCData

operator() public static method

public static operator ( ) : ArrayType
return System.Reflection.Emit.ArrayType