Searched refs:calcsize (Results 1 – 25 of 110) sorted by relevance
12345
/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/python/cpython3/Lib/test/ |
D | test_struct.py | 37 self.assertRaises(struct.error, struct.calcsize, 'Z') 39 sz = struct.calcsize('i') 40 self.assertEqual(sz * 3, struct.calcsize('iii')) 44 sz = struct.calcsize(fmt) 45 sz3 = struct.calcsize(fmt3) 129 self.assertEqual(struct.calcsize(xfmt), len(res)) 146 size = struct.calcsize(format) 153 signed_size = struct.calcsize(byteorder + format_pair[0]) 154 unsigned_size = struct.calcsize(byteorder + format_pair[1]) 158 self.assertEqual(struct.calcsize('b'), 1) [all …]
|
D | test_sys.py | 869 self.P = struct.calcsize('P') 923 calcsize = struct.calcsize 959 check_code_size(get_cell2.__code__, size('6i13P') + calcsize('n')) 977 check({}, size('nQ2P') + calcsize('2nP2n') + 8 + (8*2//3)*calcsize('n2P')) 979 check(longdict, size('nQ2P') + calcsize('2nP2n') + 16 + (16*2//3)*calcsize('n2P')) 1112 check(set(sample), s + newsize*calcsize('nP')) 1113 check(frozenset(sample), s + newsize*calcsize('nP')) 1140 check(newstyleclass, s + calcsize("2nP2n0P") + 8 + 5*calcsize("n2P")) 1146 check(newstyleclass, s + calcsize("2nP2n0P") + 16 + 10*calcsize("n2P")) 1188 expected = sys.getsizeof(base) + struct.calcsize(extra)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | V_D_M_X_.py | 46 pos += sstruct.calcsize(VDMX_HeaderFmt) 50 pos += sstruct.calcsize(VDMX_RatRangeFmt) 54 lenOffset = struct.calcsize('>H') 70 pos += sstruct.calcsize(VDMX_GroupFmt) 73 vTableLength = sstruct.calcsize(VDMX_vTableFmt) 109 lenHeader = sstruct.calcsize(VDMX_HeaderFmt) 110 lenRatRange = sstruct.calcsize(VDMX_RatRangeFmt) 111 lenOffset = struct.calcsize('>H') 112 lenGroupHeader = sstruct.calcsize(VDMX_GroupFmt) 113 lenVTable = sstruct.calcsize(VDMX_vTableFmt)
|
D | _m_e_t_a.py | 34 headerSize = sstruct.calcsize(META_HEADER_FORMAT) 39 dataMapSize = sstruct.calcsize(DATA_MAP_FORMAT) 53 headerSize = sstruct.calcsize(META_HEADER_FORMAT) 54 dataOffset = headerSize + len(keys) * sstruct.calcsize(DATA_MAP_FORMAT)
|
D | _f_v_a_r.py | 50 instanceSize = sstruct.calcsize(FVAR_INSTANCE_FORMAT) + (len(self.axes) * 4) 57 "offsetToData": sstruct.calcsize(FVAR_HEADER_FORMAT), 60 "axisSize": sstruct.calcsize(FVAR_AXIS_FORMAT), 73 headerSize = sstruct.calcsize(FVAR_HEADER_FORMAT) 173 pos = sstruct.calcsize(FVAR_INSTANCE_FORMAT)
|
D | _a_v_a_r.py | 26 assert sstruct.calcsize(AVAR_HEADER_FORMAT) == 8, sstruct.calcsize(AVAR_HEADER_FORMAT) 58 headerSize = sstruct.calcsize(AVAR_HEADER_FORMAT)
|
D | _t_r_a_k.py | 27 TRAK_HEADER_FORMAT_SIZE = sstruct.calcsize(TRAK_HEADER_FORMAT) 37 TRACK_DATA_FORMAT_SIZE = sstruct.calcsize(TRACK_DATA_FORMAT) 47 TRACK_TABLE_ENTRY_FORMAT_SIZE = sstruct.calcsize(TRACK_TABLE_ENTRY_FORMAT) 53 SIZE_VALUE_FORMAT_SIZE = struct.calcsize(SIZE_VALUE_FORMAT) 57 PER_SIZE_VALUE_FORMAT_SIZE = struct.calcsize(PER_SIZE_VALUE_FORMAT)
|
D | E_B_L_C_.py | 56 indexSubTableArraySize = struct.calcsize(indexSubTableArrayFormat) 59 indexSubHeaderSize = struct.calcsize(indexSubHeaderFormat) 62 codeOffsetPairSize = struct.calcsize(codeOffsetPairFormat) 159 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart1) 160 dataSize += len(('hori', 'vert')) * sstruct.calcsize(sbitLineMetricsFormat) 161 dataSize += sstruct.calcsize(bitmapSizeTableFormatPart2) 431 offsetDataSize = struct.calcsize(dataFormat)
|
D | _s_b_i_x.py | 22 sbixHeaderFormatSize = sstruct.calcsize(sbixHeaderFormat) 30 sbixStrikeOffsetFormatSize = sstruct.calcsize(sbixStrikeOffsetFormat)
|
D | S__i_l_f.py | 219 pc += struct.calcsize(fmt) 313 base = sstruct.calcsize(Silf_hdr_format_3) 322 base = sstruct.calcsize(Silf_hdr_format_3) 412 currpos = (sstruct.calcsize(Silf_part1_format) 413 + sstruct.calcsize(Silf_justify_format) * self.numJLevels 414 + sstruct.calcsize(Silf_part2_format) + 2 * self.numCritFeatures 417 currpos += sstruct.calcsize(Silf_part1_format_v3) 433 hdroffset = sstruct.calcsize(Silf_part1_format_v3) 754 self.fsmOffset = (sstruct.calcsize(Silf_pass_format) + 8 + len(passRanges) * 6
|
/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/python/cpython3/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 | 103 length = calcsize(fmt) 106 def calcsize(fmt): function 108 return struct.calcsize(formatstring) 188 print('size:', calcsize(fmt))
|
D | macRes.py | 206 ResourceForkHeaderSize = sstruct.calcsize(ResourceForkHeader) 215 ResourceMapHeaderSize = sstruct.calcsize(ResourceMapHeader) 224 ResourceTypeItemSize = sstruct.calcsize(ResourceTypeItem) 235 ResourceRefItemSize = sstruct.calcsize(ResourceRefItem)
|
/external/curl/tests/python_dependencies/impacket/ |
D | spnego.py | 13 from struct import pack, unpack, calcsize 57 pad = calcsize('B') 62 pad = calcsize('H') 67 pad = calcsize('B') + calcsize('!H') 72 pad = calcsize('!L')
|
/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:
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | sfnt.py | 402 ttcHeaderSize = sstruct.calcsize(ttcHeaderFormat) 413 sfntDirectorySize = sstruct.calcsize(sfntDirectoryFormat) 423 sfntDirectoryEntrySize = sstruct.calcsize(sfntDirectoryEntryFormat) 442 woffDirectorySize = sstruct.calcsize(woffDirectoryFormat) 453 woffDirectoryEntrySize = sstruct.calcsize(woffDirectoryEntryFormat)
|
/external/python/cpython2/Lib/plat-mac/ |
D | PixMapWrapper.py | 90 + self._header[offset + struct.calcsize(fmt):] 96 return struct.unpack(fmt, self._header[offset:offset+struct.calcsize(fmt)])[0]
|
12345