Home
last modified time | relevance | path

Searched refs:c_byte (Results 1 – 25 of 25) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_cfuncs.py19 self._dll.tf_b.restype = c_byte
20 self._dll.tf_b.argtypes = (c_byte,)
25 self._dll.tf_bb.restype = c_byte
26 self._dll.tf_bb.argtypes = (c_byte, c_byte)
38 self._dll.tf_bB.argtypes = (c_byte, c_ubyte)
50 self._dll.tf_bh.argtypes = (c_byte, c_short)
62 self._dll.tf_bH.argtypes = (c_byte, c_ushort)
74 self._dll.tf_bi.argtypes = (c_byte, c_int)
86 self._dll.tf_bI.argtypes = (c_byte, c_uint)
98 self._dll.tf_bl.argtypes = (c_byte, c_long)
[all …]
Dtest_byteswap.py164 self.assertIs(c_byte.__ctype_le__, c_byte)
165 self.assertIs(c_byte.__ctype_be__, c_byte)
182 ("b", c_byte),
195 ("b1", c_byte, 3),
196 ("b2", c_byte, 3),
197 ("b3", c_byte, 2),
250 _fields_ = [("b", c_byte),
269 _fields_ = [("b", c_byte),
273 ("_1", c_byte),
276 ("_2", c_byte),
[all …]
Dtest_memfunctions.py44 self.assertEqual(cast(a, POINTER(c_byte))[:7],
46 self.assertEqual(cast(a, POINTER(c_byte))[:7:],
48 self.assertEqual(cast(a, POINTER(c_byte))[6:-1:-1],
50 self.assertEqual(cast(a, POINTER(c_byte))[:7:2],
52 self.assertEqual(cast(a, POINTER(c_byte))[:7:7],
Dtest_functions.py60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
68 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
83 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
109 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
121 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
133 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
147 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
153 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
Dtest_bitfields.py53 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong)
201 _fields_ = [("a", c_byte, 4),
210 _fields_ = [("a", c_byte, 4),
216 _fields_ = [("a", c_byte, 4),
218 self.assertEqual(sizeof(X), sizeof(c_byte))
239 _fields_ = [("a", c_byte, 4),
Dtest_pep3118.py149 (c_byte, "<b", (), c_byte),
173 (POINTER(c_byte), "&<b", (), POINTER(c_byte)),
Dtest_parameters.py209 c_byte,
229 self.assertEqual(repr(c_byte.from_param(98)), "<cparam 'b' (98)>")
252 c_byte,
272 self.assertEqual(repr(c_byte.from_param(98)), "<cparam 'b' (98)>")
295 c_byte,
315 self.assertEqual(repr(c_byte.from_param(98)), "<cparam 'b' (98)>")
Dtest_unaligned_structures.py18 _fields_ = [("pad", c_byte),
22 _fields_ = [("pad", c_byte),
Dtest_structures.py56 "b": c_byte,
173 _fields_ = [("a", c_byte),
181 _fields_ = [("a", c_byte),
192 _fields_ = [("a", c_byte),
199 _fields_ = [("a", c_byte),
216 d = {"_fields_": [("a", c_byte)],
219 d = {"_fields_": [("a", c_byte)],
Dtest_callbacks.py29 PROTO = self.functype.__func__(typ, c_byte, typ)
40 self.check_type(c_byte, 42)
41 self.check_type(c_byte, -42)
Dtest_repr.py5 for base in [c_byte, c_short, c_int, c_long, c_longlong,
Dtest_array_in_pointer.py14 _fields_ = [("val", c_byte)]
Dtest_cast.py87 array_type = c_byte * sizeof(c_int)
Dtest_pointers.py6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
Dtest_slicing.py90 dll.my_strdup.restype = POINTER(c_byte)
Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
Dtest_arrays.py10 formats = 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]
/third_party/python/Lib/ctypes/
D__init__.py228 class c_byte(_SimpleCData): class
230 c_byte.__ctype_le__ = c_byte.__ctype_be__ = c_byte
231 _check_size(c_byte)
551 c_int8 = c_byte
Dwintypes.py4 BYTE = ctypes.c_byte
/third_party/skia/third_party/externals/jinja2/
Ddebug.py248 ("PyObject_HEAD", ctypes.c_byte * object().__sizeof__()),
/third_party/python/Lib/multiprocessing/
Dsharedctypes.py27 'b': ctypes.c_byte, 'B': ctypes.c_ubyte,
/third_party/rust/crates/regex/src/
Dcompile.rs278 self.c_byte(b) in c()
477 fn c_byte(&mut self, b: u8) -> ResultOrEmpty { in c_byte() method
/third_party/python/Doc/library/
Dctypes.rst224 | :class:`c_byte` | :c:type:`char` | int |
848 >>> bar.values = (c_byte * 4)()
862 >>> a = (c_byte * 4)()
871 >>> bar.values = cast((c_byte * 4)(), POINTER(c_int))
2183 .. class:: c_byte
2233 :class:`c_byte`.
/third_party/python/Lib/lib2to3/tests/data/
Dinfinite_recursion.py22 __int8_t = c_byte
2479 int8_t = c_byte