Home
last modified time | relevance | path

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

123

/external/bison/build-aux/
Dgendocs.sh197 calcsize() function
257 info_tgz_size=`calcsize "$outdir/$PACKAGE.info.tar.gz"`
267 dvi_gz_size=`calcsize $PACKAGE.dvi.gz`
273 pdf_size=`calcsize $PACKAGE.pdf`
280 ascii_size=`calcsize $PACKAGE.txt`
282 ascii_gz_size=`calcsize "$outdir/$PACKAGE.txt.gz"`
297 eval html_$1_tgz_size=`calcsize "$outdir/${PACKAGE}.html_$1.tar.gz"`
310 html_mono_size=`calcsize $PACKAGE.html`
312 html_mono_gz_size=`calcsize "$outdir/$PACKAGE.html.gz"`
326 html_node_tgz_size=`calcsize "$outdir/$PACKAGE.html_node.tar.gz"`
[all …]
/external/python/cpython2/Lib/test/
Dtest_struct.py53 self.assertRaises(struct.error, struct.calcsize, 'Z')
55 sz = struct.calcsize('i')
56 self.assertEqual(sz * 3, struct.calcsize('iii'))
60 sz = struct.calcsize(fmt)
61 sz3 = struct.calcsize(fmt3)
145 self.assertEqual(struct.calcsize(xfmt), len(res))
163 size = struct.calcsize(format)
169 signed_size = struct.calcsize(byteorder + format_pair[0])
170 unsigned_size = struct.calcsize(byteorder + format_pair[1])
174 self.assertEqual(struct.calcsize('b'), 1)
[all …]
Dtest_sys.py483 self.P = struct.calcsize('P')
530 calcsize = struct.calcsize
594 check({}, size('3P2P') + 8*calcsize('P2P'))
596 check(x, size('3P2P') + 8*calcsize('P2P') + 16*calcsize('P2P'))
722 check(set(sample), s + newsize*calcsize('lP'))
723 check(frozenset(sample), s + newsize*calcsize('lP'))
730 check('', calcsize(vh + 'lic'))
731 check('abc', calcsize(vh + 'lic') + 3)
773 expected = sys.getsizeof(base) + struct.calcsize(extra)
/external/python/cpython2/Lib/ctypes/test/
Dtest_structures.py4 from struct import calcsize
68 (calcsize("c%c0%c" % (code, code)), code))
76 (calcsize("%c" % (code)), code))
81 self.assertEqual(alignment(X), calcsize("s"))
82 self.assertEqual(sizeof(X), calcsize("3s"))
88 self.assertEqual(sizeof(Y), calcsize("3si"))
94 self.assertEqual(sizeof(SI), calcsize("3s0i 3si 0i"))
101 self.assertEqual(sizeof(IS), calcsize("3si 3s 0i"))
107 self.assertEqual(sizeof(XX), calcsize("3s 3s 0s"))
180 longlong_size = struct.calcsize("q")
[all …]
Dtest_numbers.py14 size = struct.calcsize(fmt)
138 size = struct.calcsize(t._type_)
149 align = struct.calcsize("c%c" % code) - struct.calcsize(code)
/external/fonttools/Lib/fontTools/misc/
Dsstruct.py103 length = calcsize(fmt)
106 def calcsize(fmt): function
108 return struct.calcsize(formatstring)
187 print('size:', calcsize(fmt))
DhomeResFile.py61 "\0" * sstruct.calcsize(_FCBPBFormat), self)
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_channel.py347 if len(fragment) < struct.calcsize(self.MESSAGE_HEADER_FORMAT):
358 fragment = fragment[struct.calcsize(self.MESSAGE_HEADER_FORMAT):]
359 if len(fragment) < struct.calcsize(self.FRAGMENT_HEADER_FORMAT):
Dmbim_channel_unittest.py346 packet = self._create_buffer(struct.calcsize(packet_format))
351 struct.calcsize(packet_format),
360 fragment = self._create_buffer(struct.calcsize(fragment_header_format))
365 struct.calcsize(fragment_header_format),
Dmbim_channel_endpoint.py148 struct.calcsize(self.USB_PACKET_HEADER_FORMAT),
156 if len(in_data) != struct.calcsize(self.USB_PACKET_HEADER_FORMAT):
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_L_C_.py52 indexSubTableArraySize = struct.calcsize(indexSubTableArrayFormat)
55 indexSubHeaderSize = struct.calcsize(indexSubHeaderFormat)
58 codeOffsetPairSize = struct.calcsize(codeOffsetPairFormat)
152 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart1)
153 dataSize += len(('hori', 'vert')) * sstruct.calcsize(sbitLineMetricsFormat)
154 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart2)
425 offsetDataSize = struct.calcsize(dataFormat)
D_s_b_i_x.py51 sbixHeaderFormatSize = sstruct.calcsize(sbixHeaderFormat)
58 sbixBitmapSetOffsetFormatSize = sstruct.calcsize(sbixBitmapSetOffsetFormat)
D_n_a_m_e.py18 nameRecordSize = sstruct.calcsize(nameRecordFormat)
55 stringOffset = 6 + n * sstruct.calcsize(nameRecordFormat)
DsbixBitmapSet.py19 sbixBitmapSetHeaderFormatSize = sstruct.calcsize(sbixBitmapSetHeaderFormat)
20 sbixBitmapOffsetEntryFormatSize = sstruct.calcsize(sbixBitmapOffsetEntryFormat)
DS_V_G_.py67 SVG_format_0Size = sstruct.calcsize(SVG_format_0)
75 SVG_format_1Size = sstruct.calcsize(SVG_format_1)
85 doc_index_entry_format_0Size = sstruct.calcsize(doc_index_entry_format_0)
DT_S_I__0.py19 size = struct.calcsize(tsi0Format)
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py284 ttcHeaderSize = sstruct.calcsize(ttcHeaderFormat)
295 sfntDirectorySize = sstruct.calcsize(sfntDirectoryFormat)
305 sfntDirectoryEntrySize = sstruct.calcsize(sfntDirectoryEntryFormat)
324 woffDirectorySize = sstruct.calcsize(woffDirectoryFormat)
335 woffDirectoryEntrySize = sstruct.calcsize(woffDirectoryEntryFormat)
/external/protobuf/python/google/protobuf/internal/
Dwire_format.py74 if struct.calcsize(FORMAT_UINT32_LITTLE_ENDIAN) != 4:
76 if struct.calcsize(FORMAT_UINT64_LITTLE_ENDIAN) != 8:
/external/nanopb-c/generator/google/protobuf/internal/
Dwire_format.py74 if struct.calcsize(FORMAT_UINT32_LITTLE_ENDIAN) != 4:
76 if struct.calcsize(FORMAT_UINT64_LITTLE_ENDIAN) != 8:
/external/python/cpython2/Lib/plat-mac/
DPixMapWrapper.py90 + self._header[offset + struct.calcsize(fmt):]
96 return struct.unpack(fmt, self._header[offset:offset+struct.calcsize(fmt)])[0]
/external/avb/
Davbtool673 header_bin = self._image.read(struct.calcsize(self.HEADER_FORMAT))
684 if file_hdr_sz != struct.calcsize(self.HEADER_FORMAT):
687 if chunk_hdr_sz != struct.calcsize(ImageChunk.FORMAT):
704 header_bin = self._image.read(struct.calcsize(ImageChunk.FORMAT))
707 data_sz = total_sz - struct.calcsize(ImageChunk.FORMAT)
815 struct.calcsize(ImageChunk.FORMAT)))
844 struct.calcsize(ImageChunk.FORMAT)))
876 4 + struct.calcsize(ImageChunk.FORMAT)))
980 struct.calcsize(ImageChunk.FORMAT) + num_to_keep)
984 struct.calcsize(ImageChunk.FORMAT) + 4)
[all …]
/external/autotest/client/site_tests/security_DeviceJail_Lockdown/
Dsecurity_DeviceJail_Lockdown.py28 (struct.calcsize('iiP') << 16)
/external/autotest/client/bin/input/
Dlinux_ioctl.py43 return struct.calcsize(t)
/external/python/cpython2/Doc/library/
Dstruct.rst61 (``len(string)`` must equal ``calcsize(fmt)``).
69 least ``calcsize(fmt)``).
74 .. function:: calcsize(fmt)
307 >>> calcsize('hhl')
328 >>> calcsize('ci')
330 >>> calcsize('ic')
/external/python/cpython2/Lib/ctypes/
D__init__.py14 from struct import calcsize as _calcsize
147 from struct import calcsize
151 actual, required = sizeof(typ), calcsize(typecode)

123