Home
last modified time | relevance | path

Searched refs:LPINT (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/ctypes/test/
Dtest_parameters.py84 LPINT = POINTER(c_int)
88 x = LPINT.from_param(pointer(c_int(42)))
90 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
92 self.assertEqual(LPINT.from_param(None), None)
95 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42)))
96 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42)))
97 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42)))
103 LPINT = POINTER(c_int)
105 LPINT.from_param(byref(c_int(42)))
107 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22)))
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_parameters.py89 LPINT = POINTER(c_int)
93 x = LPINT.from_param(pointer(c_int(42)))
95 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
97 self.assertEqual(LPINT.from_param(None), None)
100 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42)))
101 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42)))
102 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42)))
108 LPINT = POINTER(c_int)
110 LPINT.from_param(byref(c_int(42)))
112 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22)))
[all …]
/external/libevent/
Diocp-internal.h60 …PI *GetAcceptExSockaddrsPtr)(PVOID, DWORD, DWORD, DWORD, LPSOCKADDR *, LPINT, LPSOCKADDR *, LPINT);
/external/python/cpython3/Lib/ctypes/
Dwintypes.py181 LPINT = PINT = ctypes.POINTER(INT) variable