/external/python/cpython2/Lib/test/leakers/ |
H A D | test_ctypes.py | 4 from ctypes import Structure, c_int, POINTER namespace 9 _fields_ = [("x", c_int)]
|
/external/python/cpython3/Lib/test/leakers/ |
H A D | test_ctypes.py | 4 from ctypes import Structure, c_int, POINTER namespace 9 _fields_ = [("x", c_int)]
|
/external/llvm/bindings/python/llvm/ |
H A D | disassembler.py | 15 from ctypes import c_int namespace 76 ptr = lib.LLVMCreateDisasm(c_char_p(triple), c_void_p(None), c_int(0), 150 library.LLVMCreateDisasm.argtypes = [c_char_p, c_void_p, c_int, 161 library.LLVMSetDisasmOptions.restype = c_int 164 callbacks['op_info'] = CFUNCTYPE(c_int, c_void_p, c_uint64, c_uint64, c_uint64, 165 c_int, c_void_p)
|
/external/python/cpython2/Lib/ctypes/test/ |
H A D | test_as_parameter.py | 15 _fields_ = [("x", c_int), ("y", c_int)] 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double] 31 f.restype = POINTER(c_int) 32 f.argtypes = [POINTER(c_int)] 34 # This only works if the value c_int(42) passed to the 38 v = c_int(42) 42 self.assertEqual(type(result), POINTER(c_int)) 49 p = pointer(c_int(99)) 64 CallBack = CFUNCTYPE(c_int, c_in 190 from ctypes import c_int namespace [all...] |
H A D | test_parameters.py | 87 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer namespace 88 LPINT = POINTER(c_int) 90 ## p = pointer(c_int(42)) 92 x = LPINT.from_param(pointer(c_int(42))) 94 self.assertEqual(LPINT(c_int(42)).contents.value, 42) 98 if c_int != c_long: 106 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace 107 LPINT = POINTER(c_int) 109 LPINT.from_param(byref(c_int(42))) 112 if c_int ! 118 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace 129 from ctypes import c_short, c_uint, c_int, c_long, POINTER namespace [all...] |
H A D | test_numbers.py | 22 ArgType = type(byref(c_int(0))) 25 signed_types = [c_byte, c_short, c_int, c_long, c_longlong] 216 # c_int() can be initialized from Python's int, and c_int. 219 self.assertRaises(TypeError, c_int, c_long(42)) 258 from ctypes import c_int namespace 264 run_test(REP, "c_int()", c_int) 265 run_test(REP, "c_int(999)", c_int) [all...] |
/external/python/cpython3/Lib/ctypes/test/ |
H A D | test_as_parameter.py | 15 _fields_ = [("x", c_int), ("y", c_int)] 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double] 31 f.restype = POINTER(c_int) 32 f.argtypes = [POINTER(c_int)] 34 # This only works if the value c_int(42) passed to the 38 v = c_int(42) 42 self.assertEqual(type(result), POINTER(c_int)) 49 p = pointer(c_int(99)) 64 CallBack = CFUNCTYPE(c_int, c_in 190 from ctypes import c_int namespace [all...] |
H A D | test_parameters.py | 82 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer namespace 83 LPINT = POINTER(c_int) 85 ## p = pointer(c_int(42)) 87 x = LPINT.from_param(pointer(c_int(42))) 89 self.assertEqual(LPINT(c_int(42)).contents.value, 42) 93 if c_int != c_long: 101 from ctypes import c_short, c_uint, c_int, c_long, POINTER, byref namespace 102 LPINT = POINTER(c_int) 104 LPINT.from_param(byref(c_int(42))) 107 if c_int ! 113 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace 124 from ctypes import c_short, c_uint, c_int, c_long, POINTER namespace [all...] |
H A D | test_numbers.py | 22 ArgType = type(byref(c_int(0))) 25 signed_types = [c_byte, c_short, c_int, c_long, c_longlong] 217 # c_int() can be initialized from Python's int, and c_int. 220 self.assertRaises(TypeError, c_int, c_long(42)) 259 from ctypes import c_int namespace 265 run_test(REP, "c_int()", c_int) 266 run_test(REP, "c_int(999)", c_int) [all...] |
/external/scapy/scapy/arch/bpf/ |
H A D | core.py | 22 from ctypes import c_int, c_ulong, c_char_p namespace 30 LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p] 31 LIBC.ioctl.restype = c_int 118 ret = LIBC.ioctl(c_int(fd), BIOCSETF, cast(pointer(bp), c_char_p))
|
/external/python/cpython2/Lib/ctypes/ |
H A D | __init__.py | 182 # if int and long have the same size, make c_int an alias for c_long 183 c_int = c_long variable 186 class c_int(_SimpleCData): class in inherits:_SimpleCData 188 _check_size(c_int) 276 CFUNCTYPE(c_int)(lambda: None) 344 _func_restype_ = c_int 472 c_ssize_t = c_int 488 memset = CFUNCTYPE(c_void_p, c_void_p, c_int, c_size_t)(_memset_addr) 501 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr) 513 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_add [all...] |
/external/python/cpython3/Lib/ctypes/ |
H A D | __init__.py | 177 # if int and long have the same size, make c_int an alias for c_long 178 c_int = c_long variable 181 class c_int(_SimpleCData): class in inherits:_SimpleCData 183 _check_size(c_int) 273 CFUNCTYPE(c_int)(lambda: None) 326 _func_restype_ = c_int 458 c_ssize_t = c_int 474 memset = CFUNCTYPE(c_void_p, c_void_p, c_int, c_size_t)(_memset_addr) 487 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr) 499 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_add [all...] |
/external/python/cpython2/Lib/test/ |
H A D | test_support.py | 344 from ctypes import cdll, c_int, pointer, Structure namespace 353 _fields_ = [("highLongOfPSN", c_int), 354 ("lowLongOfPSN", c_int)]
|
H A D | test_multiprocessing.py | 92 from ctypes import Structure, c_int, c_double namespace 95 c_int = c_double = None 981 @unittest.skipIf(c_int is None, "requires _ctypes") 1006 @unittest.skipIf(c_int is None, "requires _ctypes") 1021 @unittest.skipIf(c_int is None, "requires _ctypes") 1025 @unittest.skipIf(c_int is None, "requires _ctypes") 1032 @unittest.skipIf(c_int is None, "requires _ctypes") 1979 ('x', c_int), 2109 if c_int is not None:
|
/external/python/cpython3/Lib/test/support/ |
H A D | __init__.py | 480 from ctypes import cdll, c_int, pointer, Structure namespace 489 _fields_ = [("highLongOfPSN", c_int), 490 ("lowLongOfPSN", c_int)]
|
/external/python/cpython3/Lib/test/ |
H A D | _test_multiprocessing.py | 108 from ctypes import Structure, c_int, c_double namespace 111 c_int = c_double = None 1530 @unittest.skipIf(c_int is None, "requires _ctypes") 1555 @unittest.skipIf(c_int is None, "requires _ctypes") 1570 @unittest.skipIf(c_int is None, "requires _ctypes") 1574 @unittest.skipIf(c_int is None, "requires _ctypes") 2916 ('x', c_int), 3055 if c_int is None:
|