Home
last modified time | relevance | path

Searched refs:c_short (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython2/Lib/ctypes/test/
Dtest_bitfields.py20 ("M", c_short, 1),
21 ("N", c_short, 2),
22 ("O", c_short, 3),
23 ("P", c_short, 4),
24 ("Q", c_short, 5),
25 ("R", c_short, 6),
26 ("S", c_short, 7)]
50 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong)
164 _fields_ = [("a", c_short, 1),
165 ("b", c_short, 14),
[all …]
Dtest_byteswap.py27 self.assertIs(c_short.__ctype_le__, c_short)
28 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short)
30 self.assertIs(c_short.__ctype_be__, c_short)
31 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short)
32 s = c_short.__ctype_be__(0x1234)
37 s = c_short.__ctype_le__(0x1234)
163 ("c", c_short),
231 ("h", c_short),
251 ("h", c_short),
278 ("h", c_short),
Dtest_pep3118.py120 (c_short, "<h", None, c_short),
150 (POINTER(c_short) * 2, "&<h", (2,), POINTER(c_short)),
151 (POINTER(c_short) * 2 * 3, "&<h", (3,2,), POINTER(c_short)),
152 (POINTER(c_short * 2), "&(2)<h", None, POINTER(c_short)),
Dtest_functions.py78 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
93 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
105 f.restype = c_short
119 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
131 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
143 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
157 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
163 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
205 self.assertRaises(ArgumentError, f, byref(c_short(22)))
336 _fields_ = [("x", c_short),
[all …]
Dtest_parameters.py87 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
101 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42)))
106 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
111 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22)))
118 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
123 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_short(22))))
129 from ctypes import c_short, c_uint, c_int, c_long, POINTER
139 self.assertRaises(TypeError, LPINT.from_param, c_short*3)
Dtest_cfuncs.py43 self._dll.tf_h.restype = c_short
44 self._dll.tf_h.argtypes = (c_short,)
49 self._dll.tf_bh.restype = c_short
50 self._dll.tf_bh.argtypes = (c_byte, c_short)
Dtest_cast.py15 if 2*sizeof(c_short) == sizeof(c_int):
16 ptr = cast(array, POINTER(c_short))
Dtest_repr.py5 for base in [c_byte, c_short, c_int, c_long, c_longlong,
Dtest_unaligned_structures.py13 for typ in [c_short, c_int, c_long, c_longlong,
Dtest_as_parameter.py164 _fields_ = [("x", c_short),
165 ("y", c_short)]
Dtest_slicing.py156 if sizeof(c_wchar) == sizeof(c_short):
157 dll.my_wcsdup.restype = POINTER(c_short)
Dtest_callbacks.py45 self.check_type(c_short, 42)
46 self.check_type(c_short, -42)
Dtest_arrays.py8 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
Dtest_prototypes.py84 func.argtypes = POINTER(c_short),
Dtest_pointers.py6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
Dtest_numbers.py25 signed_types = [c_byte, c_short, c_int, c_long, c_longlong]
Dtest_structures.py50 "h": c_short,
/external/python/cpython2/Lib/ctypes/
Dwintypes.py28 SHORT = c_short
104 _fields_ = [('Left', c_short),
105 ('Top', c_short),
106 ('Right', c_short),
107 ('Bottom', c_short)]
111 _fields_ = [('X', c_short),
112 ('Y', c_short)]
D__init__.py165 class c_short(_SimpleCData): class
167 _check_size(c_short)
542 for kind in [c_short, c_int, c_long, c_longlong]:
/external/python/cpython2/Lib/multiprocessing/
Dsharedctypes.py51 'h': ctypes.c_short, 'H': ctypes.c_ushort,
/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py24 __int16_t = c_short
2039 ('_flags', c_short),
2040 ('_file', c_short),
2480 int16_t = c_short
/external/python/cpython2/Doc/library/
Dctypes.rst233 | :class:`c_short` | :c:type:`short` | int/long |
1245 >>> short_array = (c_short * 4)()
2242 :class:`c_short`.
2269 .. class:: c_short
Dmultiprocessing.rst1287 (c_short * 7)() RawArray(c_short, 7) RawArray('h', 7)