Searched refs:CFUNCTYPE (Results 1 – 17 of 17) sorted by relevance
/third_party/python/Lib/lib2to3/tests/data/ |
D | infinite_recursion.py | 241 ('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/ |
D | test_random_things.py | 55 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)
|
D | test_callbacks.py | 10 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)
|
D | test_returnfuncptrs.py | 13 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)(
|
D | test_simplesubclasses.py | 19 proto = CFUNCTYPE(None) 33 cb = CFUNCTYPE(None, MyInt)(func) 38 cb = CFUNCTYPE(c_int, c_int)(func)
|
D | test_refcounts.py | 6 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)
|
D | test_as_parameter.py | 12 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)
|
D | test_funcptr.py | 8 WINFUNCTYPE = CFUNCTYPE 28 CdeclCallback = CFUNCTYPE(c_int, c_int, c_int) 42 if not WINFUNCTYPE is CFUNCTYPE:
|
D | test_functions.py | 16 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)
|
D | test_pointers.py | 68 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int)) 191 self.assertEqual(bool(CFUNCTYPE(None)(0)), False) 192 self.assertEqual(bool(CFUNCTYPE(None)(42)), True)
|
D | test_pep3118.py | 210 (CFUNCTYPE(None), "X{}", (), CFUNCTYPE(None)),
|
D | test_libc.py | 21 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
|
D | test_prototypes.py | 55 prototype = CFUNCTYPE(c_void_p, c_void_p) 217 CFUNCTYPE(None, c_int * 3)(func)
|
D | test_pickling.py | 57 prototype = CFUNCTYPE(c_int)
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 76 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/ |
D | test_code.py | 353 freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp)
|
/third_party/python/Doc/library/ |
D | ctypes.rst | 948 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
|