FFIType

The set of supported enum types. Maps onto the native python convertable types and NumPy dtypes. In the future, this should be done more elegantly, but for now it suffices that these types align on the C++ side and this side. Only NumPy arrays are handled using the buffer interface & so if you want to pass a pointer you gotta do it using a NumPy array.

GENERIC: FFIType
Void: FFIType
PY_TYPES: FFIType
UnsignedChar: FFIType
Short: FFIType
UnsignedShort: FFIType
Int: FFIType
UnsignedInt: FFIType
Long: FFIType
UnsignedLong: FFIType
LongLong: FFIType
UnsignedLongLong: FFIType
PySizeT: FFIType
Float: FFIType
Double: FFIType
Bool: FFIType
String: FFIType
PyObject: FFIType
Compound: FFIType
NUMPY_TYPES: FFIType
NUMPY_Int8: FFIType
NUMPY_UnsignedInt8: FFIType
NUMPY_Int16: FFIType
NUMPY_UnsignedInt16: FFIType
NUMPY_Int32: FFIType
NUMPY_UnsignedInt32: FFIType
NUMPY_Int64: FFIType
NUMPY_UnsignedInt64: FFIType
NUMPY_Float16: FFIType
NUMPY_Float32: FFIType
NUMPY_Float64: FFIType
NUMPY_Float128: FFIType
NUMPY_Bool: FFIType

 

type_data(val): 

 

resolve_ffi_type(val): 

Feedback

Examples

Templates

Documentation