Property | Type | Description | |
---|---|---|---|
Cast | |||
CheckBits | int | ||
EmitCDataCreation | void | ||
EnsureRefCountTable | void | ||
GetFieldInfo | void | ||
GetFieldsList | IList | ||
GetFunctionType | CFuncPtrType | ||
GetHandleFromObject | |||
GetMarshalTypeFromSize | |||
IsPointer | bool | ||
MakeArrayType | |||
MakePointer | |||
PerformModuleReload | void | ||
StringAt | |||
StructureCannotContainSelf | |||
ValidateArraySizes | void | ||
ValidateArraySizes | void | ||
ValidateArraySizes | void | ||
WStringAt |
Method | Description | |
---|---|---|
@sizeof ( IronPython.Runtime.Types.PythonType type ) : int | ||
@sizeof ( object instance ) : int | ||
CopyComPointer ( object src, object dest ) : int | ||
DeleteCharArrayValue ( _Array arr, object value ) : void | ||
DeleteWCharArrayRaw ( _Array arr ) : object | ||
DeleteWCharArrayValue ( _Array arr ) : object | ||
FormatError ( ) : string | ||
FormatError ( int errorCode ) : string | ||
FreeLibrary ( |
||
FreeLibrary ( |
||
FreeLibrary ( int handle ) : void | ||
GetCharArrayValue ( _Array arr ) : object | ||
GetWCharArrayRaw ( _Array arr ) : object | ||
GetWCharArrayValue ( _Array arr ) : object | ||
LoadLibrary ( string library, [ mode ) : object | ||
POINTER ( CodeContext context, IronPython.Runtime.Types.PythonType type ) : IronPython.Runtime.Types.PythonType |
Returns a new type which represents a pointer given the existing type.
|
|
POINTER ( CodeContext context, [ name ) : IronPython.Runtime.Types.PythonType | ||
PyObj_FromPtr ( |
Converts an address acquired from PyObj_FromPtr or that has been marshaled as type 'O' back into an object.
|
|
PyObj_ToPtr ( object obj ) : |
Converts an object into an opaque address which can be handed out to managed code.
|
|
Py_DECREF ( object key ) : void |
Decreases the ref count on an object which has been increased with Py_INCREF.
|
|
Py_INCREF ( object key ) : void |
Increases the ref count on an object ensuring that it will not be collected.
|
|
SetCharArrayValue ( _Array arr, object value ) : void | ||
SetWCharArrayRaw ( _Array arr, object value ) : void | ||
SetWCharArrayValue ( _Array arr, object value ) : void | ||
_buffer_info ( CData data ) : PythonTuple | ||
_check_HRESULT ( int hresult ) : void | ||
_unpickle ( ) : void | ||
addressof ( CData data ) : object |
returns address of C instance internal buffer. It is the callers responsibility to ensure that the provided instance will stay alive if memory in the resulting address is to be used later.
|
|
alignment ( IronPython.Runtime.Types.PythonType type ) : int |
Gets the required alignment of the given type.
|
|
alignment ( object o ) : int |
Gets the required alignment of an object.
|
|
byref ( CData instance, [ offset ) : object | ||
call_cdeclfunction ( CodeContext context, |
||
call_cdeclfunction ( CodeContext context, |
||
call_cdeclfunction ( CodeContext context, int address, PythonTuple args ) : object | ||
call_commethod ( ) : void | ||
call_function ( CodeContext context, |
||
call_function ( CodeContext context, |
||
call_function ( CodeContext context, int address, PythonTuple args ) : object | ||
dlopen ( string library, [ mode ) : object | ||
get_errno ( ) : int | ||
get_last_error ( ) : int | ||
pointer ( CodeContext context, CData data ) : |
Returns a pointer instance for the given CData
|
|
resize ( CData obj, int newSize ) : void | ||
set_conversion_mode ( CodeContext context, string encoding, string errors ) : PythonTuple | ||
set_errno ( ) : void | ||
set_last_error ( int errorCode ) : void |
Method | Description | |
---|---|---|
Cast ( |
Implementation of our cast function. data is marshalled as a void* so it ends up as an address. obj and type are marshalled as an object so we need to unmarshal them.
|
|
CheckBits ( INativeType cdata, PythonTuple pt ) : int |
Verifies that the provided bit field settings are valid for this type.
|
|
EmitCDataCreation ( INativeType type, |
Emits the marshalling code to create a CData object for reverse marshalling.
|
|
EnsureRefCountTable ( ) : void | ||
GetFieldInfo ( INativeType type, object o, string &fieldName, INativeType &cdata, int &bitCount ) : void |
Shared helper between struct and union for getting field info and validating it.
|
|
GetFieldsList ( object fields ) : IList |
Shared helper to get the _fields_ list for struct/union and validate it.
|
|
GetFunctionType ( CodeContext context, int flags ) : CFuncPtrType | ||
GetHandleFromObject ( object dll, string errorMsg ) : |
||
GetMarshalTypeFromSize ( int size ) : |
Given a specific size returns a .NET type of the equivalent size that we can use when marshalling these values across calls.
|
|
IsPointer ( IronPython.Runtime.Types.PythonType pt ) : bool | ||
MakeArrayType ( IronPython.Runtime.Types.PythonType type, int count ) : |
||
MakePointer ( CodeContext context, string name, PythonDictionary dict ) : |
||
PerformModuleReload ( IronPython.Runtime.PythonContext context, PythonDictionary dict ) : void | ||
StringAt ( |
Helper function for translating from memset to NT's FillMemory API.
|
|
StructureCannotContainSelf ( ) : |
||
ValidateArraySizes ( IronPython.Modules.ArrayModule array, int offset, int size ) : void | ||
ValidateArraySizes ( System.Bytes bytes, int offset, int size ) : void | ||
ValidateArraySizes ( int arraySize, int offset, int size ) : void | ||
WStringAt ( |
Helper function for translating from memset to NT's FillMemory API.
|
public static @sizeof ( IronPython.Runtime.Types.PythonType type ) : int | ||
type | IronPython.Runtime.Types.PythonType | |
return | int |
public static @sizeof ( object instance ) : int | ||
instance | object | |
return | int |
public static CopyComPointer ( object src, object dest ) : int | ||
src | object | |
dest | object | |
return | int |
public static DeleteCharArrayValue ( _Array arr, object value ) : void | ||
arr | _Array | |
value | object | |
return | void |
public static DeleteWCharArrayRaw ( _Array arr ) : object | ||
arr | _Array | |
return | object |
public static DeleteWCharArrayValue ( _Array arr ) : object | ||
arr | _Array | |
return | object |
public static FormatError ( int errorCode ) : string | ||
errorCode | int | |
return | string |
public static FreeLibrary ( |
||
handle | ||
return | void |
public static FreeLibrary ( |
||
handle | ||
return | void |
public static FreeLibrary ( int handle ) : void | ||
handle | int | |
return | void |
public static GetCharArrayValue ( _Array arr ) : object | ||
arr | _Array | |
return | object |
public static GetWCharArrayRaw ( _Array arr ) : object | ||
arr | _Array | |
return | object |
public static GetWCharArrayValue ( _Array arr ) : object | ||
arr | _Array | |
return | object |
public static LoadLibrary ( string library, [ mode ) : object | ||
library | string | |
mode | [ | |
return | object |
public static POINTER ( CodeContext context, IronPython.Runtime.Types.PythonType type ) : IronPython.Runtime.Types.PythonType | ||
context | CodeContext | |
type | IronPython.Runtime.Types.PythonType | |
return | IronPython.Runtime.Types.PythonType |
public static POINTER ( CodeContext context, [ name ) : IronPython.Runtime.Types.PythonType | ||
context | CodeContext | |
name | [ | |
return | IronPython.Runtime.Types.PythonType |
public static PyObj_FromPtr ( |
||
address | ||
return | object |
public static PyObj_ToPtr ( object obj ) : |
||
obj | object | |
return |
public static Py_DECREF ( object key ) : void | ||
key | object | |
return | void |
public static Py_INCREF ( object key ) : void | ||
key | object | |
return | void |
public static SetCharArrayValue ( _Array arr, object value ) : void | ||
arr | _Array | |
value | object | |
return | void |
public static SetWCharArrayRaw ( _Array arr, object value ) : void | ||
arr | _Array | |
value | object | |
return | void |
public static SetWCharArrayValue ( _Array arr, object value ) : void | ||
arr | _Array | |
value | object | |
return | void |
public static _buffer_info ( CData data ) : PythonTuple | ||
data | CData | |
return | PythonTuple |
public static _check_HRESULT ( int hresult ) : void | ||
hresult | int | |
return | void |
public static addressof ( CData data ) : object | ||
data | CData | |
return | object |
public static alignment ( IronPython.Runtime.Types.PythonType type ) : int | ||
type | IronPython.Runtime.Types.PythonType | |
return | int |
public static byref ( CData instance, [ offset ) : object | ||
instance | CData | |
offset | [ | |
return | object |
public static call_cdeclfunction ( CodeContext context, |
||
context | CodeContext | |
address | ||
args | PythonTuple | |
return | object |
public static call_cdeclfunction ( CodeContext context, |
||
context | CodeContext | |
address | ||
args | PythonTuple | |
return | object |
public static call_cdeclfunction ( CodeContext context, int address, PythonTuple args ) : object | ||
context | CodeContext | |
address | int | |
args | PythonTuple | |
return | object |
public static call_function ( CodeContext context, |
||
context | CodeContext | |
address | ||
args | PythonTuple | |
return | object |
public static call_function ( CodeContext context, |
||
context | CodeContext | |
address | ||
args | PythonTuple | |
return | object |
public static call_function ( CodeContext context, int address, PythonTuple args ) : object | ||
context | CodeContext | |
address | int | |
args | PythonTuple | |
return | object |
public static dlopen ( string library, [ mode ) : object | ||
library | string | |
mode | [ | |
return | object |
public static pointer ( CodeContext context, CData data ) : |
||
context | CodeContext | |
data | CData | |
return |
public static resize ( CData obj, int newSize ) : void | ||
obj | CData | |
newSize | int | |
return | void |
public static set_conversion_mode ( CodeContext context, string encoding, string errors ) : PythonTuple | ||
context | CodeContext | |
encoding | string | |
errors | string | |
return | PythonTuple |
public static set_last_error ( int errorCode ) : void | ||
errorCode | int | |
return | void |