/external/python/cpython2/Lib/test/ |
D | test_struct.py | 53 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 …]
|
D | test_sys.py | 494 self.P = struct.calcsize('P') 541 calcsize = struct.calcsize 605 check({}, size('3P2P') + 8*calcsize('P2P')) 607 check(x, size('3P2P') + 8*calcsize('P2P') + 16*calcsize('P2P')) 733 check(set(sample), s + newsize*calcsize('lP')) 734 check(frozenset(sample), s + newsize*calcsize('lP')) 741 check('', calcsize(vh + 'lic')) 742 check('abc', calcsize(vh + 'lic') + 3) 787 expected = sys.getsizeof(base) + struct.calcsize(extra)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | V_D_M_X_.py | 44 pos += sstruct.calcsize(VDMX_HeaderFmt) 48 pos += sstruct.calcsize(VDMX_RatRangeFmt) 52 lenOffset = struct.calcsize('>H') 68 pos += sstruct.calcsize(VDMX_GroupFmt) 71 vTableLength = sstruct.calcsize(VDMX_vTableFmt) 107 lenHeader = sstruct.calcsize(VDMX_HeaderFmt) 108 lenRatRange = sstruct.calcsize(VDMX_RatRangeFmt) 109 lenOffset = struct.calcsize('>H') 110 lenGroupHeader = sstruct.calcsize(VDMX_GroupFmt) 111 lenVTable = sstruct.calcsize(VDMX_vTableFmt)
|
D | _m_e_t_a.py | 33 headerSize = sstruct.calcsize(META_HEADER_FORMAT) 38 dataMapSize = sstruct.calcsize(DATA_MAP_FORMAT) 52 headerSize = sstruct.calcsize(META_HEADER_FORMAT) 53 dataOffset = headerSize + len(keys) * sstruct.calcsize(DATA_MAP_FORMAT)
|
D | _f_v_a_r.py | 54 instanceSize = sstruct.calcsize(FVAR_INSTANCE_FORMAT) + (len(self.axes) * 4) 61 "offsetToData": sstruct.calcsize(FVAR_HEADER_FORMAT), 64 "axisSize": sstruct.calcsize(FVAR_AXIS_FORMAT), 77 headerSize = sstruct.calcsize(FVAR_HEADER_FORMAT) 181 pos = sstruct.calcsize(FVAR_INSTANCE_FORMAT)
|
D | _a_v_a_r.py | 27 assert sstruct.calcsize(AVAR_HEADER_FORMAT) == 8, sstruct.calcsize(AVAR_HEADER_FORMAT) 59 headerSize = sstruct.calcsize(AVAR_HEADER_FORMAT)
|
D | _t_r_a_k.py | 28 TRAK_HEADER_FORMAT_SIZE = sstruct.calcsize(TRAK_HEADER_FORMAT) 38 TRACK_DATA_FORMAT_SIZE = sstruct.calcsize(TRACK_DATA_FORMAT) 48 TRACK_TABLE_ENTRY_FORMAT_SIZE = sstruct.calcsize(TRACK_TABLE_ENTRY_FORMAT) 54 SIZE_VALUE_FORMAT_SIZE = struct.calcsize(SIZE_VALUE_FORMAT) 58 PER_SIZE_VALUE_FORMAT_SIZE = struct.calcsize(PER_SIZE_VALUE_FORMAT)
|
D | _s_b_i_x.py | 19 sbixHeaderFormatSize = sstruct.calcsize(sbixHeaderFormat) 27 sbixStrikeOffsetFormatSize = sstruct.calcsize(sbixStrikeOffsetFormat)
|
D | E_B_L_C_.py | 55 indexSubTableArraySize = struct.calcsize(indexSubTableArrayFormat) 58 indexSubHeaderSize = struct.calcsize(indexSubHeaderFormat) 61 codeOffsetPairSize = struct.calcsize(codeOffsetPairFormat) 158 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart1) 159 dataSize += len(('hori', 'vert')) * sstruct.calcsize(sbitLineMetricsFormat) 160 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart2) 430 offsetDataSize = struct.calcsize(dataFormat)
|
D | S__i_l_f.py | 225 pc += struct.calcsize(fmt) 320 base = sstruct.calcsize(Silf_hdr_format_3) 329 base = sstruct.calcsize(Silf_hdr_format_3) 420 currpos = (sstruct.calcsize(Silf_part1_format) 421 + sstruct.calcsize(Silf_justify_format) * self.numJLevels 422 + sstruct.calcsize(Silf_part2_format) + 2 * self.numCritFeatures 425 currpos += sstruct.calcsize(Silf_part1_format_v3) 441 hdroffset = sstruct.calcsize(Silf_part1_format_v3) 762 self.fsmOffset = (sstruct.calcsize(Silf_pass_format) + 8 + len(passRanges) * 6
|
/external/python/cpython3/Lib/test/ |
D | test_struct.py | 38 self.assertRaises(struct.error, struct.calcsize, 'Z') 40 sz = struct.calcsize('i') 41 self.assertEqual(sz * 3, struct.calcsize('iii')) 45 sz = struct.calcsize(fmt) 46 sz3 = struct.calcsize(fmt3) 130 self.assertEqual(struct.calcsize(xfmt), len(res)) 147 size = struct.calcsize(format) 154 signed_size = struct.calcsize(byteorder + format_pair[0]) 155 unsigned_size = struct.calcsize(byteorder + format_pair[1]) 159 self.assertEqual(struct.calcsize('b'), 1) [all …]
|
D | test_sys.py | 1058 self.P = struct.calcsize('P') 1112 calcsize = struct.calcsize 1148 check_code_size(get_cell2.__code__, size('6i13P') + calcsize('n')) 1168 check({"a": 1}, size('nQ2P') + calcsize('2nP2n') + 8 + (8*2//3)*calcsize('n2P')) 1170 check(longdict, size('nQ2P') + calcsize('2nP2n') + 16 + (16*2//3)*calcsize('n2P')) 1303 check(set(sample), s + newsize*calcsize('nP')) 1304 check(frozenset(sample), s + newsize*calcsize('nP')) 1329 check(newstyleclass, s + calcsize("2nP2n0P") + 8 + 5*calcsize("n2P")) 1335 check(newstyleclass, s + calcsize("2nP2n0P") + 16 + 10*calcsize("n2P")) 1377 expected = sys.getsizeof(base) + struct.calcsize(extra)
|
/external/linux-kselftest/tools/testing/selftests/tpm2/ |
D | tpm2.py | 265 return struct.calcsize(fmt) 282 return struct.calcsize(fmt) 320 return struct.calcsize(self.__fmt()) 409 struct.calcsize(fmt), 442 struct.calcsize(fmt), 455 struct.calcsize(fmt), 497 struct.calcsize(fmt), 511 struct.calcsize(fmt), 521 struct.calcsize(fmt), 531 struct.calcsize(fmt), [all …]
|
D | tpm2_tests.py | 150 struct.calcsize(fmt) + 1, 166 struct.calcsize(fmt), 183 struct.calcsize(fmt), 206 struct.calcsize(fmt), 280 cmd = struct.pack(fmt, tpm2.TPM2_ST_NO_SESSIONS, struct.calcsize(fmt),
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_structures.py | 4 from struct import calcsize 69 (calcsize("c%c0%c" % (code, code)), code)) 77 (calcsize("%c" % (code)), code)) 82 self.assertEqual(alignment(X), calcsize("s")) 83 self.assertEqual(sizeof(X), calcsize("3s")) 89 self.assertEqual(sizeof(Y), calcsize("3si")) 95 self.assertEqual(sizeof(SI), calcsize("3s0i 3si 0i")) 102 self.assertEqual(sizeof(IS), calcsize("3si 3s 0i")) 108 self.assertEqual(sizeof(XX), calcsize("3s 3s 0s")) 181 longlong_size = struct.calcsize("q") [all …]
|
D | test_numbers.py | 14 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/ |
D | sstruct.py | 102 length = calcsize(fmt) 105 def calcsize(fmt): function 107 return struct.calcsize(formatstring) 187 print('size:', calcsize(fmt))
|
D | macRes.py | 230 ResourceForkHeaderSize = sstruct.calcsize(ResourceForkHeader) 239 ResourceMapHeaderSize = sstruct.calcsize(ResourceMapHeader) 248 ResourceTypeItemSize = sstruct.calcsize(ResourceTypeItem) 259 ResourceRefItemSize = sstruct.calcsize(ResourceRefItem)
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_structures.py | 6 from struct import calcsize 76 (calcsize("c%c0%c" % (code, code)), code)) 84 (calcsize("%c" % (code)), code)) 89 self.assertEqual(alignment(X), calcsize("s")) 90 self.assertEqual(sizeof(X), calcsize("3s")) 96 self.assertEqual(sizeof(Y), calcsize("3si")) 102 self.assertEqual(sizeof(SI), calcsize("3s0i 3si 0i")) 109 self.assertEqual(sizeof(IS), calcsize("3si 3s 0i")) 115 self.assertEqual(sizeof(XX), calcsize("3s 3s 0s")) 188 longlong_size = struct.calcsize("q") [all …]
|
D | test_numbers.py | 14 size = struct.calcsize(fmt) 144 size = struct.calcsize(t._type_) 155 align = struct.calcsize("c%c" % code) - struct.calcsize(code)
|
/external/llvm-project/clang/utils/hmaptool/ |
D | hmaptool | 39 header_size = struct.calcsize(header_fmt) 62 bucket_size = struct.calcsize(bucket_fmt) 214 header_size = struct.calcsize(header_fmt) 216 bucket_size = struct.calcsize(bucket_fmt)
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_channel.py | 347 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):
|
D | mbim_channel_unittest.py | 346 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),
|
D | mbim_channel_endpoint.py | 148 struct.calcsize(self.USB_PACKET_HEADER_FORMAT), 156 if len(in_data) != struct.calcsize(self.USB_PACKET_HEADER_FORMAT):
|
/external/protobuf/python/google/protobuf/internal/ |
D | wire_format.py | 74 if struct.calcsize(FORMAT_UINT32_LITTLE_ENDIAN) != 4: 76 if struct.calcsize(FORMAT_UINT64_LITTLE_ENDIAN) != 8:
|