libretro.ctypes¶
Type annotations for ctypes behavior that is documented but missing from its type stubs.
Most of these definitions fall back to standard ctypes types at runtime;
this allows them to be used as drop-in replacements for the standard types in function signatures.
Module Attributes
A type that can be used as an argument for a C |
|
A type that can be used as an argument for a C integer parameter. |
|
A type that can be used as an argument for a C floating-point parameter. |
|
A type that can be used as an argument for a C |
Classes
A type that can be converted to a ctypes object with the _as_parameter_ property. |
|
A type that can be used as an argument for a C floating-point parameter. |
|
A type that can be used as an argument for a C integer parameter. |
|
A trivial subclass of |
- class AsParameter[source]¶
-
A type that can be converted to a ctypes object with the _as_parameter_ property.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- type ConvertibleTo = T | AsParameter¶
- CBoolArg¶
A type that can be used as an argument for a C
c_boolparameter.
- CFloatArg¶
A type that can be used as an argument for a C floating-point parameter.
- CIntArg¶
A type that can be used as an argument for a C integer parameter.
- CStringArg¶
A type that can be used as an argument for a C
char *parameter.
- Pointer¶
alias of
_PointerDeclaration
- class c_void_ptr[source]¶
Bases:
c_void_pA trivial subclass of
c_void_pthat solely exists to preventctypesfrom implicitly convertingvoid*parameters or struct fields to anint.Use this in function signatures and struct definitions instead of
c_void_p.- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- classmethod from_param(value, /)¶
- value¶