Home
last modified time | relevance | path

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

123

/external/python/cpython3/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.py70 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
78 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]
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]
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_unaligned_structures.py18 _fields_ = [("pad", c_byte),
22 _fields_ = [("pad", c_byte),
/external/python/cpython2/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.py144 self.assertIs(c_byte.__ctype_le__, c_byte)
145 self.assertIs(c_byte.__ctype_be__, c_byte)
162 ("b", c_byte),
175 ("b1", c_byte, 3),
176 ("b2", c_byte, 3),
177 ("b3", c_byte, 2),
230 _fields_ = [("b", c_byte),
249 _fields_ = [("b", c_byte),
253 ("_1", c_byte),
256 ("_2", c_byte),
[all …]
Dtest_memfunctions.py43 self.assertEqual(cast(a, POINTER(c_byte))[:7],
45 self.assertEqual(cast(a, POINTER(c_byte))[:7:],
47 self.assertEqual(cast(a, POINTER(c_byte))[6:-1:-1],
49 self.assertEqual(cast(a, POINTER(c_byte))[:7:2],
51 self.assertEqual(cast(a, POINTER(c_byte))[:7:7],
Dtest_functions.py70 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
78 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]
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]
Dtest_bitfields.py50 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong)
198 _fields_ = [("a", c_byte, 4),
207 _fields_ = [("a", c_byte, 4),
213 _fields_ = [("a", c_byte, 4),
215 self.assertEqual(sizeof(X), sizeof(c_byte))
236 _fields_ = [("a", c_byte, 4),
Dtest_pep3118.py146 (c_byte, "<b", None, c_byte),
170 (POINTER(c_byte), "&<b", None, POINTER(c_byte)),
Dtest_unaligned_structures.py18 _fields_ = [("pad", c_byte),
22 _fields_ = [("pad", c_byte),
Dtest_structures.py49 "b": c_byte,
166 _fields_ = [("a", c_byte),
174 _fields_ = [("a", c_byte),
185 _fields_ = [("a", c_byte),
192 _fields_ = [("a", c_byte),
206 d = {"_fields_": [("a", c_byte)],
209 d = {"_fields_": [("a", c_byte)],
/external/squashfs-tools/squashfs-tools/
Dread_fs.c58 unsigned short c_byte; in read_block() local
63 res = read_fs_bytes(fd, start, 2, &c_byte); in read_block()
67 SQUASHFS_INSWAP_SHORTS(&c_byte, 1); in read_block()
68 compressed = SQUASHFS_COMPRESSED(c_byte); in read_block()
69 c_byte = SQUASHFS_COMPRESSED_SIZE(c_byte); in read_block()
76 if (c_byte > outlen) in read_block()
80 char buffer[c_byte]; in read_block()
83 res = read_fs_bytes(fd, start + 2, c_byte, buffer); in read_block()
87 res = compressor_uncompress(comp, block, buffer, c_byte, in read_block()
95 res = read_fs_bytes(fd, start + 2, c_byte, block); in read_block()
[all …]
Dxattr.c317 unsigned short c_byte; in get_xattr_space() local
332 c_byte = mangle(xattr_table + xattr_bytes + BLOCK_OFFSET, in get_xattr_space()
335 TRACE("Xattr block @ 0x%x, size %d\n", xattr_bytes, c_byte); in get_xattr_space()
336 SQUASHFS_SWAP_SHORTS(&c_byte, xattr_table + xattr_bytes, 1); in get_xattr_space()
337 xattr_bytes += SQUASHFS_COMPRESSED_SIZE(c_byte) + BLOCK_OFFSET; in get_xattr_space()
490 unsigned short c_byte; in write_xattrs() local
514 c_byte = mangle(xattr_table + xattr_bytes + BLOCK_OFFSET, datap, in write_xattrs()
516 TRACE("Xattr block @ 0x%x, size %d\n", xattr_bytes, c_byte); in write_xattrs()
517 SQUASHFS_SWAP_SHORTS(&c_byte, xattr_table + xattr_bytes, 1); in write_xattrs()
518 xattr_bytes += SQUASHFS_COMPRESSED_SIZE(c_byte) + BLOCK_OFFSET; in write_xattrs()
Dunsquashfs.c667 unsigned short c_byte; in read_block() local
672 if(read_fs_bytes(fd, start, 2, &c_byte) == FALSE) in read_block()
674 c_byte = (c_byte >> 8) | ((c_byte & 0xff) << 8); in read_block()
676 if(read_fs_bytes(fd, start, 2, &c_byte) == FALSE) in read_block()
680 SQUASHFS_COMPRESSED_SIZE(c_byte), SQUASHFS_COMPRESSED(c_byte) ? in read_block()
686 compressed = SQUASHFS_COMPRESSED(c_byte); in read_block()
687 c_byte = SQUASHFS_COMPRESSED_SIZE(c_byte); in read_block()
694 if(c_byte > outlen) in read_block()
698 char buffer[c_byte]; in read_block()
701 res = read_fs_bytes(fd, start + offset, c_byte, buffer); in read_block()
[all …]
Dmksquashfs.c466 int error, c_byte = 0; in mangle2() local
469 c_byte = compressor_compress(comp, strm, d, s, size, block_size, in mangle2()
471 if(c_byte == -1) in mangle2()
476 if(c_byte == 0 || c_byte >= size || in mangle2()
477 (c_byte > (size * ((100.0 - compress_thresh_per) / 100.0)))) { in mangle2()
483 return c_byte; in mangle2()
498 unsigned short c_byte; in get_inode() local
511 c_byte = mangle(inode_table + inode_bytes + BLOCK_OFFSET, in get_inode()
514 TRACE("Inode block @ 0x%x, size %d\n", inode_bytes, c_byte); in get_inode()
515 SQUASHFS_SWAP_SHORTS(&c_byte, inode_table + inode_bytes, 1); in get_inode()
[all …]
/external/capstone/bindings/python/capstone/
Devm.py10 ('pop', ctypes.c_byte),
11 ('push', ctypes.c_byte),
/external/llvm/bindings/python/llvm/
Ddisassembler.py13 from ctypes import c_byte
102 out_str = cast((c_byte * 255)(), c_char_p)
123 out_str = cast((c_byte * 255)(), c_char_p)
/external/llvm-project/llvm/bindings/python/llvm/
Ddisassembler.py12 from ctypes import c_byte
101 out_str = cast((c_byte * 255)(), c_char_p)
122 out_str = cast((c_byte * 255)(), c_char_p)
/external/python/cpython3/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
/external/python/cpython2/Lib/ctypes/
D__init__.py230 class c_byte(_SimpleCData): class
232 c_byte.__ctype_le__ = c_byte.__ctype_be__ = c_byte
233 _check_size(c_byte)
544 c_int8 = c_byte
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dinode.c89 int *cur_index, int *offset, int *c_byte) in get_block_length() argument
114 *c_byte = temp; in get_block_length()
128 *c_byte = temp; in get_block_length()
167 unsigned int c_byte = length; in squashfs_read_data() local
169 if (c_byte) { in squashfs_read_data()
171 compressed = SQUASHFS_COMPRESSED_BLOCK(c_byte); in squashfs_read_data()
173 c_byte = SQUASHFS_COMPRESSED_SIZE_BLOCK(c_byte); in squashfs_read_data()
176 ? "" : "un", (unsigned int) c_byte); in squashfs_read_data()
181 for (b = 1; bytes < c_byte; b++) { in squashfs_read_data()
189 &c_byte))) in squashfs_read_data()
[all …]

123