Home
last modified time | relevance | path

Searched refs:restype (Results 1 - 25 of 43) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
H A Dtest_cfuncs.py19 self._dll.tf_b.restype = c_byte
25 self._dll.tf_bb.restype = c_byte
31 self._dll.tf_B.restype = c_ubyte
37 self._dll.tf_bB.restype = c_ubyte
43 self._dll.tf_h.restype = c_short
49 self._dll.tf_bh.restype = c_short
55 self._dll.tf_H.restype = c_ushort
61 self._dll.tf_bH.restype = c_ushort
67 self._dll.tf_i.restype = c_int
73 self._dll.tf_bi.restype
[all...]
H A Dtest_functions.py69 f.restype = c_wchar
75 f.restype = None
84 f.restype = c_int
95 f.restype = c_short
104 # You cannot assign character format codes as restype any longer
105 self.assertRaises(TypeError, setattr, f, "restype", "i")
110 f.restype = c_float
122 f.restype = c_double
135 f.restype = c_longdouble
147 f.restype
[all...]
H A Dtest_prototypes.py8 # func.restype = c_char_p
49 func.restype = c_long
73 func.restype = c_longlong
75 func.restype = c_long
95 func.restype = c_char_p
110 func.restype = c_char_p
125 func.restype = c_char_p
145 func.restype = c_wchar_p
153 func.restype = c_void_p
169 func.restype
[all...]
H A Dtest_slicing.py66 dll.my_strdup.restype = POINTER(c_char)
67 dll.my_free.restype = None
90 dll.my_strdup.restype = POINTER(c_byte)
103 dll.my_free.restype = None
109 dll.my_strdup.restype = allocated_c_char_p
134 dll.my_wcsdup.restype = POINTER(c_wchar)
136 dll.my_free.restype = None
149 dll.my_wcsdup.restype = POINTER(c_short)
151 dll.my_wcsdup.restype = POINTER(c_int)
153 dll.my_wcsdup.restype
[all...]
H A Dtest_checkretval.py20 dll._testfunc_p_p.restype = CHECKED
23 dll._testfunc_p_p.restype = None
26 del dll._testfunc_p_p.restype
H A Dtest_as_parameter.py31 f.restype = POINTER(c_int)
74 f.restype = c_int
110 f.restype = c_int
129 f.restype = c_longlong
157 dll._testfunc_byval.restype = c_int
167 dll.ret_2h_func.restype = S2H
187 dll.ret_8i_func.restype = S8I
H A Dtest_structures.py422 func.restype = None
452 func.restype = None
479 func.restype = None
518 func.restype = c_int
531 func.restype = c_double
547 func.restype = c_double
614 func.restype = c_long
622 func.restype = c_long
631 func.restype = c_long
641 func.restype
[all...]
H A Dtest_python_api.py19 PyBytes_FromStringAndSize.restype = py_object
26 pythonapi.PyBytes_FromString.restype = py_object
40 pythonapi.PyLong_FromLong.restype = py_object
46 pythonapi.PyLong_AsLong.restype = c_long
H A Dtest_pointers.py26 func.restype = c_longlong
28 func.restype = c_long
35 func.restype = POINTER(c_int)
45 func.restype = POINTER(c_int)
148 func.restype = c_char_p
H A Dtest_funcptr.py21 self.assertEqual(x.restype, c_int)
98 strchr.restype = c_char_p
105 strtok.restype = c_char_p
H A Dtest_libc.py15 lib.my_sqrt.restype = c_double
23 lib.my_qsort.restype = None
H A Dtest_random_things.py19 windll.kernel32.LoadLibraryA.restype = c_void_p
21 windll.kernel32.GetProcAddress.restype = c_void_p
H A Dtest_unicode.py42 func.restype = ctypes.c_char_p
46 func.restype = ctypes.c_int
H A Dtest_returnfuncptrs.py13 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
26 get_strchr.restype = c_void_p
H A Dtest_stringptr.py48 strchr.restype = c_char_p
67 strchr.restype = POINTER(c_char)
H A Dtest_win32.py37 f.restype = S
120 ReturnRect.restype = RECT
H A Dtest_callbacks.py175 integrate.restype = c_double
223 func.restype = c_int
241 func.restype = c_double
281 func.restype = None
H A Dtest_parameters.py144 func.restype = c_void_p
266 PyList_Append.restype = c_int
289 PyList_Append.restype = c_int
/third_party/pulseaudio/src/tests/
H A Dvolume-ui.py19 _to_name.restype = c_char_p
23 _to_pretty_name.restype = c_char_p
27 _snprint.restype = c_char_p
31 _position_to_string.restype = c_char_p
35 _position_to_pretty_string.restype = c_char_p
39 _can_balance.restype = c_int
43 _can_fade.restype = c_int
47 _parse.restype = c_void_p
87 _snprint.restype = c_char_p
91 _max.restype
[all...]
/third_party/python/Modules/_ctypes/
H A Dcallbacks.c37 Py_XDECREF(self->restype); in CThunkObject_dealloc()
49 Py_VISIT(self->restype); in CThunkObject_traverse()
59 Py_CLEAR(self->restype); in CThunkObject_clear()
151 ffi_type *restype, in _CallPythonObject()
251 if (restype != &ffi_type_void && result) { in _CallPythonObject()
257 if (restype->type != FFI_TYPE_FLOAT && restype->size < sizeof(ffi_arg)) { in _CallPythonObject()
258 mem = (char *)mem + sizeof(ffi_arg) - restype->size; in _CallPythonObject()
268 be the result. EXCEPT when restype is py_object - Python in _CallPythonObject()
335 p->restype in CThunkObject_new()
150 _CallPythonObject(void *mem, ffi_type *restype, SETFUNC setfunc, PyObject *callable, PyObject *converters, int flags, void **pArgs) _CallPythonObject() argument
345 _ctypes_alloc_callback(PyObject *callable, PyObject *converters, PyObject *restype, int flags) _ctypes_alloc_callback() argument
[all...]
H A Dcallproc.c805 ffi_type *restype, in _call_function_pointer()
820 if (restype == NULL) { in _call_function_pointer()
869 restype, in _call_function_pointer()
879 restype, in _call_function_pointer()
893 restype, in _call_function_pointer()
960 * Convert the C value in result into a Python object, depending on restype.
962 * - If restype is NULL, return a Python integer.
963 * - If restype is None, return None.
964 * - If restype is a simple ctypes type (c_int, c_void_p), call the type's getfunc,
966 * - If restype i
801 _call_function_pointer(int flags, PPROC pProc, void **avalues, ffi_type **atypes, ffi_type *restype, void *resmem, int argcount, int argtypecount) _call_function_pointer() argument
969 GetResult(PyObject *restype, void *result, PyObject *checker) GetResult() argument
1138 _ctypes_callproc(PPROC pProc, PyObject *argtuple, IUnknown *pIunk, GUID *iid, int flags, PyObject *argtypes, PyObject *restype, PyObject *checker) _ctypes_callproc() argument
[all...]
H A Dctypes.h86 PyObject *restype; member
115 PyObject *restype; member
180 PyObject *restype,
228 PyObject *restype; /* CDataObject or NULL */ member
299 PyObject *restype,
/third_party/python/Lib/ctypes/
H A D__init__.py72 def CFUNCTYPE(restype, *argtypes, **kw):
73 """CFUNCTYPE(restype, *argtypes,
76 restype: the result type
97 return _c_functype_cache[(restype, argtypes, flags)]
103 _restype_ = restype
105 _c_functype_cache[(restype, argtypes, flags)] = CFunctionType
113 def WINFUNCTYPE(restype, *argtypes, **kw):
124 return _win_functype_cache[(restype, argtypes, flags)]
130 _restype_ = restype
132 _win_functype_cache[(restype, argtype
[all...]
/third_party/python/Lib/test/
H A Dwin_console_handler.py35 SetConsoleCtrlHandler.restype = wintypes.BOOL
/third_party/python/Tools/unicode/
H A Dgenwincodec.py16 MultiByteToWideChar.restype = ctypes.c_int

Completed in 11 milliseconds

12