Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/ctypes/test/
Dtest_structures.py47 formats = {"c": c_char,
65 _fields_ = [("x", c_char),
73 _fields_ = [("x", c_char),
80 _fields_ = [("x", c_char * 3)]
85 _fields_ = [("x", c_char * 3),
134 ("y", c_char)]
140 self.assertEqual(X.y.size, sizeof(c_char))
148 ("y", c_char)]
154 self.assertEqual(X.y.size, sizeof(c_char))
214 _fields_ = [("name", c_char*6),
[all …]
Dtest_stringptr.py12 _fields_ = [("str", POINTER(c_char))]
50 strchr.argtypes = c_char_p, c_char
56 strchr.argtypes = POINTER(c_char), c_char
65 strchr.restype = POINTER(c_char)
Dtest_returnfuncptrs.py14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
Dtest_libc.py17 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
25 lib.my_qsort(chars, len(chars)-1, sizeof(c_char), comparefunc(sort))
Dtest_buffers.py10 self.assertEqual(sizeof(b), 32 * sizeof(c_char))
15 self.assertEqual(sizeof(b), 4 * sizeof(c_char))
31 self.assertEqual(sizeof(b), 4 * sizeof(c_char))
Dtest_repr.py12 class X(c_char):
25 self.assertEqual("c_char('x')", repr(c_char('x')))
Dtest_prototypes.py93 func.argtypes = POINTER(c_char),
101 ca = c_char("a")
116 ca = c_char("a")
131 ca = c_char("a")
Dtest_byteswap.py150 self.assertIs(c_char.__ctype_le__, c_char)
151 self.assertIs(c_char.__ctype_be__, c_char)
173 ("n", c_char),
Dtest_strings.py8 BUF = c_char * 4
54 BUF = c_char * 4
59 BUF = c_char * 4
Dtest_funcptr.py99 strchr.argtypes = (c_char_p, c_char)
112 return (c_char*size)(*init)
Dtest_frombuffer.py36 (c_char * 16).from_buffer, "a" * 16)
67 x = (c_char * 16).from_buffer_copy("a" * 16)
Dtest_numbers.py191 from ctypes import c_char
195 v = c_char.from_address(a.buffer_info()[0])
197 self.assertIs(type(v), c_char)
Dtest_arrays.py49 CharArray = ARRAY(c_char, 3)
102 sz = (c_char * 3).from_address(addressof(p))
Dtest_pep3118.py117 (c_char, "<c", None, c_char),
Dtest_delattr.py14 delattr, (c_char * 5)(), "value")
Dtest_slicing.py70 dll.my_strdup.restype = POINTER(c_char)
127 p = (c_char * 27)(*s)
Dtest_callbacks.py93 self.check_type(c_char, "x")
94 self.check_type(c_char, "a")
Dtest_pickling.py70 self.dumps(c_char(b"x"))
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dwin32.py282 ('XonChar', c_char),
283 ('XoffChar', c_char),
284 ('ErrorChar', c_char),
285 ('EofChar', c_char),
286 ('EvtChar', c_char),
/external/python/cpython2/Lib/ctypes/
D__init__.py57 buftype = c_char * size
62 buftype = c_char * init
235 class c_char(_SimpleCData): class
237 c_char.__ctype_le__ = c_char.__ctype_be__ = c_char
238 _check_size(c_char)
270 POINTER(c_char).from_param = c_char_p.from_param
Dwintypes.py151 ("cFileName", c_char * MAX_PATH),
152 ("cAlternateFileName", c_char * 14)]
/external/autotest/client/site_tests/kernel_CryptoAPI/
Dkernel_CryptoAPI.py36 ('salg_type', ctypes.c_char * 14),
39 ('salg_name', ctypes.c_char * 64),
/external/vulkan-validation-layers/
Dvk-layer-introspect.py41 _fields_ = [("c_layerName", ctypes.c_char * 256),
44 ("c_description", ctypes.c_char * 256)]
69 _fields_ = [("c_extensionName", ctypes.c_char * 256),
/external/python/cpython2/Lib/multiprocessing/
Dsharedctypes.py49 'c': ctypes.c_char,
140 if obj._type_ is ctypes.c_char:
/external/llvm/bindings/python/llvm/
Dobject.py81 from ctypes import c_char
466 library.LLVMGetSectionContents.restype = POINTER(c_char)

12