Home
last modified time | relevance | path

Searched refs:CFUNCTYPE (Results 1 – 17 of 17) sorted by relevance

/third_party/python/Lib/lib2to3/tests/data/
Dinfinite_recursion.py241 ('i2d', CFUNCTYPE(c_int)),
242 ('d2i', CFUNCTYPE(STRING)),
243 ('create', CFUNCTYPE(STRING)),
244 ('destroy', CFUNCTYPE(None)),
272 bio_info_cb = CFUNCTYPE(None, POINTER(bio_st), c_int, STRING, c_int, c_long, c_long)
278 ('bwrite', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
279 ('bread', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
280 ('bputs', CFUNCTYPE(c_int, POINTER(BIO), STRING)),
281 ('bgets', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
[all …]
/third_party/python/Lib/ctypes/test/
Dtest_random_things.py55 cb = CFUNCTYPE(c_int, c_int)(callback_func)
60 cb = CFUNCTYPE(c_int, c_int)(callback_func)
65 cb = CFUNCTYPE(c_int, c_double)(callback_func)
70 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
Dtest_callbacks.py10 functype = CFUNCTYPE
147 CFUNCTYPE(None)(lambda x=Nasty(): None)
166 CALLBACK = CFUNCTYPE(c_double, c_double)
188 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
215 CALLBACK = CFUNCTYPE(c_int, c_int, c_int, c_int, c_int, c_int)
231 CALLBACK = CFUNCTYPE(c_double, c_double, c_double, c_double,
273 CALLBACK = CFUNCTYPE(None, X)
297 proto = CFUNCTYPE(c_int, *(c_int,) * CTYPES_MAX_ARGCOUNT)
310 proto = CFUNCTYPE(c_int)
Dtest_returnfuncptrs.py13 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
30 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
40 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
58 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
Dtest_simplesubclasses.py19 proto = CFUNCTYPE(None)
33 cb = CFUNCTYPE(None, MyInt)(func)
38 cb = CFUNCTYPE(c_int, c_int)(func)
Dtest_refcounts.py6 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
7 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
91 proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int)
Dtest_as_parameter.py12 CALLBACK_FUNCTYPE = CFUNCTYPE
64 CallBack = CFUNCTYPE(c_int, c_int)
77 MyCallback = CFUNCTYPE(c_int, c_int)
112 MyCallback = CFUNCTYPE(c_int, c_int)
130 MyCallback = CFUNCTYPE(c_longlong, c_longlong)
Dtest_funcptr.py8 WINFUNCTYPE = CFUNCTYPE
28 CdeclCallback = CFUNCTYPE(c_int, c_int, c_int)
42 if not WINFUNCTYPE is CFUNCTYPE:
Dtest_functions.py16 WINFUNCTYPE = CFUNCTYPE
223 CallBack = CFUNCTYPE(c_int, c_int)
237 MyCallback = CFUNCTYPE(c_int, c_int)
268 MyCallback = CFUNCTYPE(c_int, c_int)
287 MyCallback = CFUNCTYPE(c_longlong, c_longlong)
384 proto = CFUNCTYPE(c_int, RECT, POINT)
Dtest_pointers.py68 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int))
191 self.assertEqual(bool(CFUNCTYPE(None)(0)), False)
192 self.assertEqual(bool(CFUNCTYPE(None)(42)), True)
Dtest_pep3118.py210 (CFUNCTYPE(None), "X{}", (), CFUNCTYPE(None)),
Dtest_libc.py21 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
Dtest_prototypes.py55 prototype = CFUNCTYPE(c_void_p, c_void_p)
217 CFUNCTYPE(None, c_int * 3)(func)
Dtest_pickling.py57 prototype = CFUNCTYPE(c_int)
/third_party/python/Lib/ctypes/
D__init__.py76 def CFUNCTYPE(restype, *argtypes, **kw): function
133 WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE")
496 memmove = CFUNCTYPE(c_void_p, c_void_p, c_void_p, c_size_t)(_memmove_addr)
499 memset = CFUNCTYPE(c_void_p, c_void_p, c_int, c_size_t)(_memset_addr)
/third_party/python/Lib/test/
Dtest_code.py353 freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp)
/third_party/python/Doc/library/
Dctypes.rst948 The :func:`CFUNCTYPE` factory function creates types for callback functions
976 >>> CMPFUNC = CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
1024 >>> @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
1039 Make sure you keep references to :func:`CFUNCTYPE` objects as long as they
1655 .. function:: CFUNCTYPE(restype, *argtypes, use_errno=False, use_last_error=False)
1669 :func:`WINFUNCTYPE` is the same as :func:`CFUNCTYPE`. The function will