HomeSort by relevance Sort by last modified time
    Searched defs:struct (Results 201 - 225 of 453) sorted by null

1 2 3 4 5 6 7 891011>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
base64.py 9 import struct namespace
154 c1, c2, c3 = struct.unpack('!HHB', s[i*5:(i+1)*5])
binhex.py 26 import struct namespace
197 d3 = struct.pack('>h', finfo.Flags)
198 d4 = struct.pack('>ii', self.dlen, self.rlen)
214 self.ofp.write(struct.pack(fmt, self.crc))
401 filecrc = struct.unpack('>h', self.ifp.read(2))[0] & 0xffff
418 flags = struct.unpack('>h', rest[9:11])[0]
419 self.dlen = struct.unpack('>l', rest[11:15])[0]
420 self.rlen = struct.unpack('>l', rest[15:19])[0]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
aepack.py 18 import struct namespace
99 return AE.AECreateDesc('long', struct.pack('l', x))
101 return AE.AECreateDesc('doub', struct.pack('d', x))
158 return struct.unpack('b', desc.data)[0]
174 return struct.unpack('d', data)[0]
184 script, language = struct.unpack('hh', desc.data[:4])
187 script, language = struct.unpack('hh', desc.data)
192 return struct.unpack('l', desc.data)[0]
194 a, b = struct.unpack('lL', desc.data)
199 v = struct.unpack('l', desc.data
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_gzip.py 9 import struct namespace
225 self.assertEqual(mtimeBytes, struct.pack('<i', mtime)) # little-endian
249 self.assertEqual(isizeBytes, struct.pack('<i', len(data1)))
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
base64.py 9 import struct namespace
154 c1, c2, c3 = struct.unpack('!HHB', s[i*5:(i+1)*5])
binhex.py 26 import struct namespace
197 d3 = struct.pack('>h', finfo.Flags)
198 d4 = struct.pack('>ii', self.dlen, self.rlen)
214 self.ofp.write(struct.pack(fmt, self.crc))
401 filecrc = struct.unpack('>h', self.ifp.read(2))[0] & 0xffff
418 flags = struct.unpack('>h', rest[9:11])[0]
419 self.dlen = struct.unpack('>l', rest[11:15])[0]
420 self.rlen = struct.unpack('>l', rest[15:19])[0]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_gzip.py 9 import struct namespace
225 self.assertEqual(mtimeBytes, struct.pack('<i', mtime)) # little-endian
249 self.assertEqual(isizeBytes, struct.pack('<i', len(data1)))
  /system/bt/vendor_libs/test_vendor_lib/scripts/
test_channel.py 44 import struct namespace
  /system/extras/tests/net_test/
cstruct.py 19 >>> # Declare a struct type by specifying name, field formats and field names.
20 ... # Field formats are the same as those used in the struct module.
22 >>> NLMsgHdr = cstruct.Struct("NLMsgHdr", "=LHHLL", "length type flags seq pid")
39 >>> # Parse the beginning of a byte stream as a struct, and return the struct
51 import struct namespace
55 size = struct.calcsize(fmt)
56 elements = struct.unpack(fmt, "\x00" * size)
60 def Struct(name, fmt, fieldnames, substructs={}):
61 """Function that returns struct classes.""
    [all...]
netlink.py 24 import struct namespace
44 NLMsgHdr = cstruct.Struct("NLMsgHdr", "=LHHLL", "length type flags seq pid")
45 NLMsgErr = cstruct.Struct("NLMsgErr", "=i", "error")
46 NLAttr = cstruct.Struct("NLAttr", "=HH", "nla_len nla_type")
77 return self._NlAttr(nla_type, struct.pack("=I", value))
103 msg: A Struct, the type of the data after the netlink header.
227 msgtype: A cstruct.Struct, the data type to parse the dump results as.
  /cts/apps/CtsVerifier/assets/scripts/power_monitors/
monsoon.py 25 import struct namespace
263 if len(bytes) != struct.calcsize(STATUS_FORMAT) or bytes[0] != "\x10":
268 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes)))
346 seq, type, x, y = struct.unpack("BBBB", bytes[:4])
347 data = [struct.unpack(">hhhh", bytes[x:x+8])
387 """ Pack a struct (without length or checksum) and send it. """
388 data = struct.pack(fmt, *args)
390 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256
391 out = struct.pack("B", data_len) + data + struct.pack("B", checksum
    [all...]
  /external/autotest/client/common_lib/
site_utils.py 11 import struct namespace
606 ip_1_num = struct.unpack('!I', socket.inet_aton(ip_1))[0]
607 ip_2_num = struct.unpack('!I', socket.inet_aton(ip_2))[0]
733 return list(struct.unpack(fmt % num_frames * wave_file.getnchannels(),
  /external/autotest/client/cros/cellular/mbim_compliance/
mbim_data_transfer.py 10 import struct namespace
373 field_values = struct.unpack_from(data_format, raw_data)
490 return struct.calcsize(cls.get_field_format_string())
504 return array.array('B', struct.pack(format_string, *field_values))
mbim_message.py 32 import struct namespace
91 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format,
241 @param get_all: Whether to return the total struct fields or sub struct
260 @param get_all: Whether to return the total struct defaults or sub
261 struct defaults.
355 @param get_all: Whether to return the total struct length or sub struct
360 return struct.calcsize(cls.get_field_format_string(get_all=get_all))
518 return array.array('B', struct.pack(format_string, *field_values)
    [all...]
usb_descriptors.py 5 import struct namespace
85 character(s), which instructs |struct.unpack_from| how to extract the
109 unpack_length = struct.calcsize(data_format)
127 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format,
  /external/autotest/client/cros/faft/utils/
flashrom_handler.py 16 import struct namespace
205 sig, _, rootk_offs, rootk_size = struct.unpack_from(
207 except struct.error, e:
213 key_body_offset, key_body_size = struct.unpack_from(
402 _, gbb_flags = struct.unpack_from(gbb_header_format, gbb_section)
403 except struct.error, e:
413 formatted_flags = struct.pack(gbb_header_format, flags)
414 except struct.error, e:
os_interface.py 10 import struct namespace
310 magic, _, kb_size = struct.unpack_from(header_format, blob)
315 _, version = struct.unpack_from(preamble_format, blob, kb_size)
325 magic, _, version = struct.unpack_from(header_format, blob)
338 magic, _, kb_size = struct.unpack_from(header_format, blob)
343 _, version = struct.unpack_from(preamble_format, blob, kb_size)
354 magic, _, kb_size = struct.unpack_from(header_format, blob)
359 _, ver, subver, _, flags = struct.unpack_from(preamble_format, blob,
  /external/autotest/client/virt/
rss_client.py 9 import socket, struct, time, sys, os, glob namespace
107 self._send(struct.pack("=i", CHUNKSIZE))
178 self._send(struct.pack("=I", len(str)))
185 size = struct.unpack("=I", self._receive(4))[0]
231 self._send(struct.pack("=I", msg))
236 return struct.unpack("=I", s)[0]
  /external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/
message.py 20 import struct namespace
599 struct.unpack('!HH',
629 struct.unpack('!HHIH',
643 struct.unpack('!HH',
710 aucount, adcount) = struct.unpack('!HHHHHH', self.wire[:12])
    [all...]
name.py 25 import struct namespace
415 s = struct.pack('!H', value)
  /external/fonttools/Lib/fontTools/ttLib/
sfnt.py 19 import struct namespace
39 offsetTable = struct.unpack(">%dL" % self.numFonts, self.file.read(self.numFonts * 4))
191 self.majorVersion, self.minorVersion = struct.unpack(">HH", self.headTable[4:8])
268 self.file.write(struct.pack(">L", checksumadjustment))
463 longs = struct.unpack(">%dL" % (len(block) // 4), block)
  /external/fonttools/Lib/fontTools/ttLib/tables/
E_B_L_C_.py 7 import struct namespace
52 indexSubTableArraySize = struct.calcsize(indexSubTableArrayFormat)
55 indexSubHeaderSize = struct.calcsize(indexSubHeaderFormat)
58 codeOffsetPairSize = struct.calcsize(codeOffsetPairFormat)
96 tup = struct.unpack(indexSubTableArrayFormat, data)
101 tup = struct.unpack(indexSubHeaderFormat, data[:indexSubHeaderSize])
183 data = struct.pack(indexSubHeaderFormat, i.firstGlyphIndex, i.lastGlyphIndex, i.additionalOffsetToIndexSubtable)
346 return struct.pack(indexSubHeaderFormat, self.indexFormat, self.imageFormat, self.imageDataOffset)
425 offsetDataSize = struct.calcsize(dataFormat)
434 offsetArray = [struct.unpack(dataFormat, self.data[slice(*loc)])[0] for loc in indexingLocations
    [all...]
_c_m_a_p.py 8 import struct namespace
23 tableVersion, numSubTables = struct.unpack(">HH", data[:4])
28 platformID, platEncID, offset = struct.unpack(
31 format, length = struct.unpack(">HH", data[offset:offset+4])
33 format, reserved, length = struct.unpack(">HHL", data[offset:offset+8])
35 format, length = struct.unpack(">HL", data[offset:offset+6])
60 data = struct.pack(">HH", self.tableVersion, numSubTables)
74 data = data + struct.pack(">HHl", table.platformID, table.platEncID, offset)
122 format, length, language = struct.unpack(">HHH", data[:6])
197 return struct.pack(">HHH", 0, 262, self.language) + self.dat
    [all...]
  /external/nanopb-c/generator/google/protobuf/internal/
decoder.py 50 struct.error: Unpacking of a fixed-width field failed.
58 Something up the call stack is expected to catch IndexError and struct.error
83 import struct namespace
259 format: The format string to pass to struct.unpack().
262 value_size = struct.calcsize(format)
263 local_unpack = struct.unpack
268 # Note that we expect someone up-stack to catch struct.error and convert
282 This code works around a bug in struct.unpack for non-finite 32-bit
286 local_unpack = struct.unpack
295 # In Python 2.4, struct.unpack will convert it to a finite 64-bit value
    [all...]
encoder.py 69 import struct namespace
478 format: The format string to pass to struct.pack().
481 value_size = struct.calcsize(format)
484 local_struct_pack = struct.pack
515 passing non-finite floating-point values to struct.pack, and makes a
520 format: The format string to pass to struct.pack().
523 value_size = struct.calcsize(format)
550 local_struct_pack = struct.pack

Completed in 1634 milliseconds

1 2 3 4 5 6 7 891011>>