C# 클래스 IronPython.Modules.ModuleOps

Provides helper functions which need to be called from generated code to implement various portions of modules.
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ArgumentError ( object type, string expected, object got ) : Exception

메소드 상세

CallbackException() 공개 정적인 메소드

public static CallbackException ( Exception e, CodeContext context ) : void
e System.Exception
context CodeContext
리턴 void

CharToString() 공개 정적인 메소드

public static CharToString ( byte c ) : string
c byte
리턴 string

CheckCDataType() 공개 정적인 메소드

public static CheckCDataType ( object o, object type ) : CTypes.CData
o object
type object
리턴 CTypes.CData

CheckFunctionId() 공개 정적인 메소드

public static CheckFunctionId ( CTypes func, int id ) : bool
func CTypes
id int
리턴 bool

CheckNativeArgument() 공개 정적인 메소드

public static CheckNativeArgument ( object o, object type ) : CTypes.CData
o object
type object
리턴 CTypes.CData

CheckSimpleCDataType() 공개 정적인 메소드

public static CheckSimpleCDataType ( object o, object type ) : CTypes.CData
o object
type object
리턴 CTypes.CData

CreateCData() 공개 정적인 메소드

public static CreateCData ( IntPtr dataAddress, IronPython.Runtime.Types.PythonType type ) : object
dataAddress System.IntPtr
type IronPython.Runtime.Types.PythonType
리턴 object

CreateCFunction() 공개 정적인 메소드

public static CreateCFunction ( IntPtr address, IronPython.Runtime.Types.PythonType type ) : object
address System.IntPtr
type IronPython.Runtime.Types.PythonType
리턴 object

CreateMemoryHolder() 공개 정적인 메소드

public static CreateMemoryHolder ( IntPtr data, int size ) : object
data System.IntPtr
size int
리턴 object

CreateNativeWrapper() 공개 정적인 메소드

public static CreateNativeWrapper ( IronPython.Runtime.Types.PythonType type, object holder ) : object
type IronPython.Runtime.Types.PythonType
holder object
리턴 object

CreateSubclassInstance() 공개 정적인 메소드

public static CreateSubclassInstance ( object type, object instance ) : object
type object
instance object
리턴 object

DoErrorCheck() 공개 정적인 메소드

public static DoErrorCheck ( object errCheckFunc, object result, object func, object arguments ) : object
errCheckFunc object
result object
func object
arguments object
리턴 object

EnsureString() 공개 정적인 메소드

public static EnsureString ( object o ) : string
o object
리턴 string

GetBoolean() 공개 정적인 메소드

public static GetBoolean ( object value, object type ) : byte
value object
type object
리턴 byte

GetBytes() 공개 정적인 메소드

public static GetBytes ( System.Bytes bytes ) : byte[]
bytes System.Bytes
리턴 byte[]

GetChar() 공개 정적인 메소드

public static GetChar ( object value, object type ) : byte
value object
type object
리턴 byte

GetCharPointer() 공개 정적인 메소드

public static GetCharPointer ( object value ) : IntPtr
value object
리턴 System.IntPtr

GetDouble() 공개 정적인 메소드

public static GetDouble ( object value, object type ) : double
value object
type object
리턴 double

GetDoubleBits() 공개 정적인 메소드

public static GetDoubleBits ( object value ) : long
value object
리턴 long

GetFunctionPointerValue() 공개 정적인 메소드

public static GetFunctionPointerValue ( object o, object type ) : IntPtr
o object
type object
리턴 System.IntPtr

GetObject() 공개 정적인 메소드

public static GetObject ( object value ) : IntPtr
value object
리턴 System.IntPtr

GetPointer() 공개 정적인 메소드

public static GetPointer ( object value ) : IntPtr
value object
리턴 System.IntPtr

GetSignedByte() 공개 정적인 메소드

public static GetSignedByte ( object value, object type ) : byte
value object
type object
리턴 byte

GetSignedInt() 공개 정적인 메소드

public static GetSignedInt ( object value, object type ) : int
value object
type object
리턴 int

GetSignedLong() 공개 정적인 메소드

public static GetSignedLong ( object value, object type ) : int
value object
type object
리턴 int

GetSignedLongLong() 공개 정적인 메소드

public static GetSignedLongLong ( object value, object type ) : long
value object
type object
리턴 long

GetSignedShort() 공개 정적인 메소드

public static GetSignedShort ( object value, object type ) : short
value object
type object
리턴 short

GetSingle() 공개 정적인 메소드

public static GetSingle ( object value, object type ) : float
value object
type object
리턴 float

GetSingleBits() 공개 정적인 메소드

public static GetSingleBits ( object value ) : int
value object
리턴 int

GetUnsignedByte() 공개 정적인 메소드

public static GetUnsignedByte ( object value, object type ) : byte
value object
type object
리턴 byte

GetUnsignedInt() 공개 정적인 메소드

public static GetUnsignedInt ( object value, object type ) : int
value object
type object
리턴 int

GetUnsignedLong() 공개 정적인 메소드

public static GetUnsignedLong ( object value, object type ) : int
value object
type object
리턴 int

GetUnsignedLongLong() 공개 정적인 메소드

public static GetUnsignedLongLong ( object value, object type ) : long
value object
type object
리턴 long

GetUnsignedShort() 공개 정적인 메소드

public static GetUnsignedShort ( object value, object type ) : short
value object
type object
리턴 short

GetVariantBool() 공개 정적인 메소드

public static GetVariantBool ( object value, object type ) : int
value object
type object
리턴 int

GetWChar() 공개 정적인 메소드

public static GetWChar ( object value, object type ) : char
value object
type object
리턴 char

GetWCharPointer() 공개 정적인 메소드

public static GetWCharPointer ( object value ) : IntPtr
value object
리턴 System.IntPtr

IntPtrToObject() 공개 정적인 메소드

public static IntPtrToObject ( IntPtr address ) : object
address System.IntPtr
리턴 object

StringToChar() 공개 정적인 메소드

public static StringToChar ( string s ) : char
s string
리턴 char

StringToHGlobalAnsi() 공개 정적인 메소드

public static StringToHGlobalAnsi ( string str ) : IntPtr
str string
리턴 System.IntPtr

StringToHGlobalUni() 공개 정적인 메소드

public static StringToHGlobalUni ( string str ) : IntPtr
str string
리턴 System.IntPtr

TryCheckBytes() 공개 정적인 메소드

public static TryCheckBytes ( object o ) : byte[]
o object
리턴 byte[]

TryCheckCDataPointerType() 공개 정적인 메소드

public static TryCheckCDataPointerType ( object o, object type ) : CTypes.CData
o object
type object
리턴 CTypes.CData

TryCheckCharArray() 공개 정적인 메소드

public static TryCheckCharArray ( object o ) : CTypes._Array
o object
리턴 CTypes._Array

TryCheckWCharArray() 공개 정적인 메소드

public static TryCheckWCharArray ( object o ) : CTypes._Array
o object
리턴 CTypes._Array

WCharToString() 공개 정적인 메소드

public static WCharToString ( char c ) : string
c char
리턴 string