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

12

/external/python/cpython2/Lib/ctypes/test/
H A Dtest_unaligned_structures.py18 _fields_ = [("pad", c_byte),
22 _fields_ = [("pad", c_byte),
H A 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],
H A 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_uin
[all...]
H A 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),
[all...]
H A Dtest_pep3118.py118 (c_byte, "<b", None, c_byte),
143 (POINTER(c_byte), "&<b", None, POINTER(c_byte)),
H A Dtest_repr.py5 for base in [c_byte, c_short, c_int, c_long, c_longlong,
H A 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]
H A Dtest_array_in_pointer.py14 _fields_ = [("val", c_byte)]
H A 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),
H A Dtest_structures.py48 "b": c_byte,
165 _fields_ = [("a", c_byte),
173 _fields_ = [("a", c_byte),
184 _fields_ = [("a", c_byte),
191 _fields_ = [("a", c_byte),
205 d = {"_fields_": [("a", c_byte)],
208 d = {"_fields_": [("a", c_byte)],
H A Dtest_callbacks.py27 PROTO = self.functype.im_func(typ, c_byte, typ)
38 self.check_type(c_byte, 42)
39 self.check_type(c_byte, -42)
H A Dtest_arrays.py8 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
H A Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
H A Dtest_pointers.py6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
/external/llvm/bindings/python/llvm/
H A Ddisassembler.py13 from ctypes import c_byte namespace
102 out_str = cast((c_byte * 255)(), c_char_p)
123 out_str = cast((c_byte * 255)(), c_char_p)
/external/squashfs-tools/squashfs-tools/
H A Dxattr.c317 unsigned short c_byte; local
332 c_byte = mangle(xattr_table + xattr_bytes + BLOCK_OFFSET,
335 TRACE("Xattr block @ 0x%x, size %d\n", xattr_bytes, c_byte);
336 SQUASHFS_SWAP_SHORTS(&c_byte, xattr_table + xattr_bytes, 1);
337 xattr_bytes += SQUASHFS_COMPRESSED_SIZE(c_byte) + BLOCK_OFFSET;
490 unsigned short c_byte; local
514 c_byte = mangle(xattr_table + xattr_bytes + BLOCK_OFFSET, datap,
516 TRACE("Xattr block @ 0x%x, size %d\n", xattr_bytes, c_byte);
517 SQUASHFS_SWAP_SHORTS(&c_byte, xattr_table + xattr_bytes, 1);
518 xattr_bytes += SQUASHFS_COMPRESSED_SIZE(c_byte)
[all...]
H A Dread_fs.c58 unsigned short c_byte; local
63 res = read_fs_bytes(fd, start, 2, &c_byte);
67 SQUASHFS_INSWAP_SHORTS(&c_byte, 1);
68 compressed = SQUASHFS_COMPRESSED(c_byte);
69 c_byte = SQUASHFS_COMPRESSED_SIZE(c_byte);
76 if (c_byte > outlen)
80 char buffer[c_byte];
83 res = read_fs_bytes(fd, start + 2, c_byte, buffer);
87 res = compressor_uncompress(comp, block, buffer, c_byte,
[all...]
H A Dunsquashfs.c667 unsigned short c_byte; local
672 if(read_fs_bytes(fd, start, 2, &c_byte) == FALSE)
674 c_byte = (c_byte >> 8) | ((c_byte & 0xff) << 8);
676 if(read_fs_bytes(fd, start, 2, &c_byte) == FALSE)
680 SQUASHFS_COMPRESSED_SIZE(c_byte), SQUASHFS_COMPRESSED(c_byte) ?
686 compressed = SQUASHFS_COMPRESSED(c_byte);
687 c_byte
741 int c_byte = SQUASHFS_COMPRESSED_SIZE_BLOCK(size); local
1030 int c_byte = SQUASHFS_COMPRESSED_SIZE_BLOCK(block_list[i]); local
[all...]
H A Dmksquashfs.c453 int error, c_byte = 0; local
456 c_byte = compressor_compress(comp, strm, d, s, size, block_size,
458 if(c_byte == -1)
463 if(c_byte == 0 || c_byte >= size ||
464 (c_byte > (size * ((100.0 - compress_thresh_per) / 100.0)))) {
470 return c_byte;
485 unsigned short c_byte; local
498 c_byte = mangle(inode_table + inode_bytes + BLOCK_OFFSET,
501 TRACE("Inode block @ 0x%x, size %d\n", inode_bytes, c_byte);
623 unsigned short c_byte; local
659 unsigned short c_byte; local
1305 unsigned short c_byte; local
1620 add_pending_fragment(struct file_buffer *write_buffer, int c_byte, int fragment) argument
1719 unsigned short c_byte; local
2521 int c_byte, compressed_size; local
6313 unsigned short c_byte = size | SQUASHFS_COMPRESSED_BIT; local
[all...]
H A Dprocess_fragments.c284 file_buffer->c_byte = 0;
287 file_buffer->c_byte = file_buffer->size;
H A Dcaches-queues-lists.h119 int c_byte; member in struct:file_buffer
/external/python/cpython2/Lib/ctypes/
H A D__init__.py230 class c_byte(_SimpleCData): class in inherits:_SimpleCData
232 c_byte.__ctype_le__ = c_byte.__ctype_be__ = c_byte
233 _check_size(c_byte)
540 c_int8 = c_byte
H A Dwintypes.py4 BYTE = c_byte
/external/autotest/client/common_lib/
H A Dsmogcheck_tpm.py28 c_ubyte, c_byte, byref, c_uint16, cast, create_string_buffer, c_uint64, \
191 POINTER(c_byte)()) != 0:
372 self.hTpm, TSS_TPMCAP_VERSION_VAL, 0, POINTER(c_byte)(),
384 POINTER(c_byte)))
29 c_char_p, addressof, c_char, pointer namespace
/external/squashfs-tools/kernel-2.4/fs/squashfs/
H A Dinode.c89 int *cur_index, int *offset, int *c_byte)
114 *c_byte = temp;
128 *c_byte = temp;
167 unsigned int c_byte = length; local
169 if (c_byte) {
171 compressed = SQUASHFS_COMPRESSED_BLOCK(c_byte);
173 c_byte = SQUASHFS_COMPRESSED_SIZE_BLOCK(c_byte);
176 ? "" : "un", (unsigned int) c_byte);
181 for (b = 1; bytes < c_byte;
88 get_block_length(struct super_block *s, int *cur_index, int *offset, int *c_byte) argument
[all...]

Completed in 265 milliseconds

12