Searched refs:c_void_p (Results 1 – 22 of 22) sorted by relevance
/third_party/pulseaudio/src/tests/ |
D | volume-ui.py | 20 _to_name.argtypes = [c_void_p] 24 _to_pretty_name.argtypes = [c_void_p] 28 _snprint.argtypes = [c_char_p, c_ulong, c_void_p] 40 _can_balance.argtypes = [c_void_p] 44 _can_fade.argtypes = [c_void_p] 47 _parse.restype = c_void_p 48 _parse.argtypes = [c_void_p, c_char_p] 88 _snprint.argtypes = [c_char_p, c_ulong, c_void_p] 92 _max.argtypes = [c_void_p] 95 _scale.restype = c_void_p [all …]
|
/third_party/python/Lib/ctypes/test/ |
D | test_pointers.py | 25 if sizeof(c_longlong) == sizeof(c_void_p): 170 if sizeof(c_void_p) == 4: 171 self.assertEqual(c_void_p(0xFFFFFFFF).value, 172 c_void_p(-1).value) 173 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFF).value, 174 c_void_p(-1).value) 175 elif sizeof(c_void_p) == 8: 176 self.assertEqual(c_void_p(0xFFFFFFFF).value, 178 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFF).value, 179 c_void_p(-1).value) [all …]
|
D | test_parameters.py | 25 from ctypes import c_void_p, c_char_p 27 class CVOIDP(c_void_p): 141 from ctypes import CDLL, c_void_p, ArgumentError 144 func.restype = c_void_p 163 self.assertEqual(func(c_void_p(42)), 42) 224 c_void_p, 245 self.assertRegex(repr(c_void_p.from_param(0x12)), r"^<cparam 'P' \(0x0*12\)>$") 267 c_void_p, 288 self.assertRegex(repr(c_void_p.from_param(0x12)), r"^<cparam 'P' \(0x0*12\)>$") 310 c_void_p, [all …]
|
D | test_prototypes.py | 55 prototype = CFUNCTYPE(c_void_p, c_void_p) 72 if sizeof(c_longlong) == sizeof(c_void_p): 126 func.argtypes = c_void_p, 146 func.argtypes = c_void_p, 153 func.restype = c_void_p 158 func.argtypes = c_void_p,
|
D | test_loading.py | 83 f_ord_addr = c_void_p.from_address(a_ord).value 84 f_name_addr = c_void_p.from_address(a_name).value 111 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p 112 windll.kernel32.GetProcAddress.restype = c_void_p
|
D | test_random_things.py | 19 windll.kernel32.LoadLibraryA.restype = c_void_p 20 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p 21 windll.kernel32.GetProcAddress.restype = c_void_p
|
D | test_sizes.py | 26 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 29 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t))
|
D | test_cast.py | 28 ptr = cast(c_void_p(address), POINTER(c_int)) 76 self.assertEqual(cast(cast(s, c_void_p), c_char_p).value, 82 self.assertEqual(cast(cast(s, c_void_p), c_wchar_p).value,
|
D | test_win32.py | 50 self.assertEqual(sizeof(wintypes.HWND), sizeof(c_void_p)) 55 sizeof(c_void_p)) 57 sizeof(c_void_p))
|
D | test_libc.py | 22 lib.my_qsort.argtypes = c_void_p, c_size_t, c_size_t, comparefunc
|
D | test_pickling.py | 62 c_void_p(),
|
D | test_returnfuncptrs.py | 26 get_strchr.restype = c_void_p
|
D | test_bitfields.py | 124 result = self.fail_fields(("a", c_void_p, 1))
|
D | test_byteswap.py | 202 for typ in c_wchar, c_void_p, POINTER(c_int):
|
D | test_structures.py | 447 self.assertGreater(sizeof(s), sizeof(c_void_p))
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 241 return "%s(%s)" % (self.__class__.__name__, c_void_p.from_buffer(self).value) 244 class c_void_p(_SimpleCData): class 246 c_voidp = c_void_p # backwards compatibility (to a bug) 247 _check_size(c_void_p) 257 return "%s(%s)" % (self.__class__.__name__, c_void_p.from_buffer(self).value) 271 _pointer_type_cache[None] = c_void_p 481 if sizeof(c_uint) == sizeof(c_void_p): 484 elif sizeof(c_ulong) == sizeof(c_void_p): 487 elif sizeof(c_ulonglong) == sizeof(c_void_p): 496 memmove = CFUNCTYPE(c_void_p, c_void_p, c_void_p, c_size_t)(_memmove_addr) [all …]
|
D | wintypes.py | 38 LPCVOID = LPVOID = ctypes.c_void_p 42 if ctypes.sizeof(ctypes.c_long) == ctypes.sizeof(ctypes.c_void_p): 45 elif ctypes.sizeof(ctypes.c_longlong) == ctypes.sizeof(ctypes.c_void_p): 60 HANDLE = ctypes.c_void_p # in the header files: void *
|
D | _aix.py | 52 from ctypes import c_void_p, sizeof 57 AIX_ABI = sizeof(c_void_p) * 8
|
/third_party/python/Lib/lib2to3/tests/data/ |
D | infinite_recursion.py | 282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)), 311 ('ptr', c_void_p), 463 CRYPTO_EX_new = CFUNCTYPE(c_int, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void… 464 CRYPTO_EX_free = CFUNCTYPE(None, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void… 465 …UNCTYPE(c_int, POINTER(CRYPTO_EX_DATA), POINTER(CRYPTO_EX_DATA), c_void_p, c_int, c_long, c_void_p) 470 ('argp', c_void_p), 483 CRYPTO_MEM_LEAK_CB = CFUNCTYPE(c_void_p, c_ulong, STRING, c_int, c_int, c_void_p) 646 ('update', CFUNCTYPE(c_int, POINTER(EVP_MD_CTX), c_void_p, c_ulong)), 663 ('md_data', c_void_p), 684 ('ctrl', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), c_int, c_int, c_void_p)), [all …]
|
/third_party/python/Lib/test/ |
D | test_unicode.py | 2555 c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p) 2724 PyUnicode_FromFormat(b'%p', c_void_p(-1))
|
/third_party/python/Doc/library/ |
D | ctypes.rst | 260 | :class:`c_void_p` | :c:type:`void *` | int or ``None`` | 290 :class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they 2177 foreign functions :attr:`restype` is a subclass of :class:`c_void_p`, you will 2340 .. class:: c_void_p
|
/third_party/python/Misc/ |
D | HISTORY | 17880 - Bug #1518190: The ctypes.c_void_p constructor now accepts any
|