C# Class IronPython.Modules.ModuleOps

Provides helper functions which need to be called from generated code to implement various portions of modules.
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
CallbackException ( Exception e, CodeContext context ) : void
CharToString ( byte c ) : string
CheckCDataType ( object o, object type ) : CTypes.CData
CheckFunctionId ( CTypes func, int id ) : bool
CheckNativeArgument ( object o, object type ) : CTypes.CData
CheckSimpleCDataType ( object o, object type ) : CTypes.CData
CreateCData ( IntPtr dataAddress, IronPython.Runtime.Types.PythonType type ) : object
CreateCFunction ( IntPtr address, IronPython.Runtime.Types.PythonType type ) : object
CreateMemoryHolder ( IntPtr data, int size ) : object
CreateNativeWrapper ( IronPython.Runtime.Types.PythonType type, object holder ) : object
CreateSubclassInstance ( object type, object instance ) : object
DoErrorCheck ( object errCheckFunc, object result, object func, object arguments ) : object
EnsureString ( object o ) : string
GetBoolean ( object value, object type ) : byte
GetBytes ( System.Bytes bytes ) : byte[]
GetChar ( object value, object type ) : byte
GetCharPointer ( object value ) : IntPtr
GetDouble ( object value, object type ) : double
GetDoubleBits ( object value ) : long
GetFunctionPointerValue ( object o, object type ) : IntPtr
GetObject ( object value ) : IntPtr
GetPointer ( object value ) : IntPtr
GetSignedByte ( object value, object type ) : byte
GetSignedInt ( object value, object type ) : int
GetSignedLong ( object value, object type ) : int
GetSignedLongLong ( object value, object type ) : long
GetSignedShort ( object value, object type ) : short
GetSingle ( object value, object type ) : float
GetSingleBits ( object value ) : int
GetUnsignedByte ( object value, object type ) : byte
GetUnsignedInt ( object value, object type ) : int
GetUnsignedLong ( object value, object type ) : int
GetUnsignedLongLong ( object value, object type ) : long
GetUnsignedShort ( object value, object type ) : short
GetVariantBool ( object value, object type ) : int
GetWChar ( object value, object type ) : char
GetWCharPointer ( object value ) : IntPtr
IntPtrToObject ( IntPtr address ) : object
StringToChar ( string s ) : char
StringToHGlobalAnsi ( string str ) : IntPtr
StringToHGlobalUni ( string str ) : IntPtr
TryCheckBytes ( object o ) : byte[]
TryCheckCDataPointerType ( object o, object type ) : CTypes.CData
TryCheckCharArray ( object o ) : CTypes._Array
TryCheckWCharArray ( object o ) : CTypes._Array
WCharToString ( char c ) : string

Private Methods

Méthode Description
ArgumentError ( object type, string expected, object got ) : Exception

Method Details

CallbackException() public static méthode

public static CallbackException ( Exception e, CodeContext context ) : void
e System.Exception
context CodeContext
Résultat void

CharToString() public static méthode

public static CharToString ( byte c ) : string
c byte
Résultat string

CheckCDataType() public static méthode

public static CheckCDataType ( object o, object type ) : CTypes.CData
o object
type object
Résultat CTypes.CData

CheckFunctionId() public static méthode

public static CheckFunctionId ( CTypes func, int id ) : bool
func CTypes
id int
Résultat bool

CheckNativeArgument() public static méthode

public static CheckNativeArgument ( object o, object type ) : CTypes.CData
o object
type object
Résultat CTypes.CData

CheckSimpleCDataType() public static méthode

public static CheckSimpleCDataType ( object o, object type ) : CTypes.CData
o object
type object
Résultat CTypes.CData

CreateCData() public static méthode

public static CreateCData ( IntPtr dataAddress, IronPython.Runtime.Types.PythonType type ) : object
dataAddress System.IntPtr
type IronPython.Runtime.Types.PythonType
Résultat object

CreateCFunction() public static méthode

public static CreateCFunction ( IntPtr address, IronPython.Runtime.Types.PythonType type ) : object
address System.IntPtr
type IronPython.Runtime.Types.PythonType
Résultat object

CreateMemoryHolder() public static méthode

public static CreateMemoryHolder ( IntPtr data, int size ) : object
data System.IntPtr
size int
Résultat object

CreateNativeWrapper() public static méthode

public static CreateNativeWrapper ( IronPython.Runtime.Types.PythonType type, object holder ) : object
type IronPython.Runtime.Types.PythonType
holder object
Résultat object

CreateSubclassInstance() public static méthode

public static CreateSubclassInstance ( object type, object instance ) : object
type object
instance object
Résultat object

DoErrorCheck() public static méthode

public static DoErrorCheck ( object errCheckFunc, object result, object func, object arguments ) : object
errCheckFunc object
result object
func object
arguments object
Résultat object

EnsureString() public static méthode

public static EnsureString ( object o ) : string
o object
Résultat string

GetBoolean() public static méthode

public static GetBoolean ( object value, object type ) : byte
value object
type object
Résultat byte

GetBytes() public static méthode

public static GetBytes ( System.Bytes bytes ) : byte[]
bytes System.Bytes
Résultat byte[]

GetChar() public static méthode

public static GetChar ( object value, object type ) : byte
value object
type object
Résultat byte

GetCharPointer() public static méthode

public static GetCharPointer ( object value ) : IntPtr
value object
Résultat System.IntPtr

GetDouble() public static méthode

public static GetDouble ( object value, object type ) : double
value object
type object
Résultat double

GetDoubleBits() public static méthode

public static GetDoubleBits ( object value ) : long
value object
Résultat long

GetFunctionPointerValue() public static méthode

public static GetFunctionPointerValue ( object o, object type ) : IntPtr
o object
type object
Résultat System.IntPtr

GetObject() public static méthode

public static GetObject ( object value ) : IntPtr
value object
Résultat System.IntPtr

GetPointer() public static méthode

public static GetPointer ( object value ) : IntPtr
value object
Résultat System.IntPtr

GetSignedByte() public static méthode

public static GetSignedByte ( object value, object type ) : byte
value object
type object
Résultat byte

GetSignedInt() public static méthode

public static GetSignedInt ( object value, object type ) : int
value object
type object
Résultat int

GetSignedLong() public static méthode

public static GetSignedLong ( object value, object type ) : int
value object
type object
Résultat int

GetSignedLongLong() public static méthode

public static GetSignedLongLong ( object value, object type ) : long
value object
type object
Résultat long

GetSignedShort() public static méthode

public static GetSignedShort ( object value, object type ) : short
value object
type object
Résultat short

GetSingle() public static méthode

public static GetSingle ( object value, object type ) : float
value object
type object
Résultat float

GetSingleBits() public static méthode

public static GetSingleBits ( object value ) : int
value object
Résultat int

GetUnsignedByte() public static méthode

public static GetUnsignedByte ( object value, object type ) : byte
value object
type object
Résultat byte

GetUnsignedInt() public static méthode

public static GetUnsignedInt ( object value, object type ) : int
value object
type object
Résultat int

GetUnsignedLong() public static méthode

public static GetUnsignedLong ( object value, object type ) : int
value object
type object
Résultat int

GetUnsignedLongLong() public static méthode

public static GetUnsignedLongLong ( object value, object type ) : long
value object
type object
Résultat long

GetUnsignedShort() public static méthode

public static GetUnsignedShort ( object value, object type ) : short
value object
type object
Résultat short

GetVariantBool() public static méthode

public static GetVariantBool ( object value, object type ) : int
value object
type object
Résultat int

GetWChar() public static méthode

public static GetWChar ( object value, object type ) : char
value object
type object
Résultat char

GetWCharPointer() public static méthode

public static GetWCharPointer ( object value ) : IntPtr
value object
Résultat System.IntPtr

IntPtrToObject() public static méthode

public static IntPtrToObject ( IntPtr address ) : object
address System.IntPtr
Résultat object

StringToChar() public static méthode

public static StringToChar ( string s ) : char
s string
Résultat char

StringToHGlobalAnsi() public static méthode

public static StringToHGlobalAnsi ( string str ) : IntPtr
str string
Résultat System.IntPtr

StringToHGlobalUni() public static méthode

public static StringToHGlobalUni ( string str ) : IntPtr
str string
Résultat System.IntPtr

TryCheckBytes() public static méthode

public static TryCheckBytes ( object o ) : byte[]
o object
Résultat byte[]

TryCheckCDataPointerType() public static méthode

public static TryCheckCDataPointerType ( object o, object type ) : CTypes.CData
o object
type object
Résultat CTypes.CData

TryCheckCharArray() public static méthode

public static TryCheckCharArray ( object o ) : CTypes._Array
o object
Résultat CTypes._Array

TryCheckWCharArray() public static méthode

public static TryCheckWCharArray ( object o ) : CTypes._Array
o object
Résultat CTypes._Array

WCharToString() public static méthode

public static WCharToString ( char c ) : string
c char
Résultat string