/prebuilts/gdb/linux-x86/lib/python2.7/ |
gettext.py | 49 import locale, copy, os, re, struct, sys namespace 264 unpack = struct.unpack
|
gzip.py | 8 import struct, sys, time, os namespace 22 output.write(struct.pack("<L", value)) 25 return struct.unpack("<I", input.read(4))[0]
|
imputil.py | 22 import struct namespace 437 f.write(struct.pack('<I', timestamp)) 591 t = struct.unpack('<I', f.read(4))[0]
|
modulefinder.py | 11 import struct namespace 341 unpack = struct.unpack): 365 unpack = struct.unpack):
|
wave.py | 86 import struct namespace 87 if struct.pack("h", 1) == "\000\001": 264 wFormatTag, self._nchannels, self._framerate, dwAvgBytesPerSec, wBlockAlign = struct.unpack('<HHLLH', chunk.read(14)) 266 sampwidth = struct.unpack('<H', chunk.read(2))[0] 469 self._file.write(struct.pack('<L4s4sLHHLLHH4s', 476 self._file.write(struct.pack('<L', self._datalength)) 485 self._file.write(struct.pack('<L', 36 + self._datawritten)) 487 self._file.write(struct.pack('<L', self._datawritten))
|
xdrlib.py | 7 import struct namespace 54 self.__buf.write(struct.pack('>L', x)) 57 self.__buf.write(struct.pack('>l', x)) 72 try: self.__buf.write(struct.pack('>f', x)) 73 except struct.error, msg: 77 try: self.__buf.write(struct.pack('>d', x)) 78 except struct.error, msg: 147 x = struct.unpack('>L', data)[0] 159 return struct.unpack('>l', data)[0] 183 return struct.unpack('>f', data)[0 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_audioop.py | 4 import struct namespace 15 return struct.pack('=%d%s' % (len(data), formats[width]), *data)
|
test_hash.py | 8 import struct namespace 16 IS_64BIT = (struct.calcsize('l') == 8)
|
test_str.py | 2 import struct namespace 117 if sys.maxint > (1 << 32) or struct.calcsize('P') != 4:
|
test_struct.py | 4 import struct namespace 19 struct.pack('q', 5) 20 except struct.error: 37 # SF bug 1530559. struct.pack raises TypeError where it used 41 got = struct.pack(format, number) 46 expected = struct.pack(format, int(number)) 50 self.assertEqual((struct.pack('=i', 1)[0] == chr(0)), ISBIGENDIAN) 53 self.assertRaises(struct.error, struct.calcsize, 'Z') 55 sz = struct.calcsize('i' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
dbtables.py | 24 import struct namespace 463 newid = struct.pack('B'*_rowid_str_len, *blist)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_numbers.py | 3 import struct namespace 8 # the struct module, use the struct module to calculate the 14 size = struct.calcsize(fmt) 15 a = struct.unpack(fmt, ("\x00"*32)[:size])[0] 16 b = struct.unpack(fmt, ("\xFF"*32)[:size])[0] 17 c = struct.unpack(fmt, ("\x7F"+"\x00"*32)[:size])[0] 18 d = struct.unpack(fmt, ("\x80"+"\xFF"*32)[:size])[0] 137 size = struct.calcsize(t._type_) 138 except struct.error [all...] |
test_structures.py | 3 from struct import calcsize 185 import struct namespace 186 longlong_size = struct.calcsize("q") 187 longlong_align = struct.calcsize("bq") - longlong_size
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
gettext.py | 49 import locale, copy, os, re, struct, sys namespace 264 unpack = struct.unpack
|
gzip.py | 8 import struct, sys, time, os namespace 22 output.write(struct.pack("<L", value)) 25 return struct.unpack("<I", input.read(4))[0]
|
imputil.py | 22 import struct namespace 437 f.write(struct.pack('<I', timestamp)) 591 t = struct.unpack('<I', f.read(4))[0]
|
modulefinder.py | 11 import struct namespace 341 unpack = struct.unpack): 365 unpack = struct.unpack):
|
wave.py | 86 import struct namespace 87 if struct.pack("h", 1) == "\000\001": 264 wFormatTag, self._nchannels, self._framerate, dwAvgBytesPerSec, wBlockAlign = struct.unpack('<HHLLH', chunk.read(14)) 266 sampwidth = struct.unpack('<H', chunk.read(2))[0] 469 self._file.write(struct.pack('<L4s4sLHHLLHH4s', 476 self._file.write(struct.pack('<L', self._datalength)) 485 self._file.write(struct.pack('<L', 36 + self._datawritten)) 487 self._file.write(struct.pack('<L', self._datawritten))
|
xdrlib.py | 7 import struct namespace 54 self.__buf.write(struct.pack('>L', x)) 57 self.__buf.write(struct.pack('>l', x)) 72 try: self.__buf.write(struct.pack('>f', x)) 73 except struct.error, msg: 77 try: self.__buf.write(struct.pack('>d', x)) 78 except struct.error, msg: 147 x = struct.unpack('>L', data)[0] 159 return struct.unpack('>l', data)[0] 183 return struct.unpack('>f', data)[0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/ |
aetypes.py | 7 import struct namespace 95 return pack(struct.pack('b', self.bool), 'bool') 297 return pack(struct.pack('hh', self.script, self.language)+self.text, 317 return pack(struct.pack('hh', self.script, self.language), 337 return pack(struct.pack('hh', self.v, self.h), 359 return pack(struct.pack('hhhh', self.v0, self.h0, self.v1, self.h1), 380 return pack(struct.pack('hhh', self.r, self.g, self.b),
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_audioop.py | 4 import struct namespace 15 return struct.pack('=%d%s' % (len(data), formats[width]), *data)
|
test_hash.py | 8 import struct namespace 16 IS_64BIT = (struct.calcsize('l') == 8)
|
test_str.py | 2 import struct namespace 117 if sys.maxint > (1 << 32) or struct.calcsize('P') != 4:
|
test_struct.py | 4 import struct namespace 19 struct.pack('q', 5) 20 except struct.error: 37 # SF bug 1530559. struct.pack raises TypeError where it used 41 got = struct.pack(format, number) 46 expected = struct.pack(format, int(number)) 50 self.assertEqual((struct.pack('=i', 1)[0] == chr(0)), ISBIGENDIAN) 53 self.assertRaises(struct.error, struct.calcsize, 'Z') 55 sz = struct.calcsize('i' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/ |
dbtables.py | 24 import struct namespace 463 newid = struct.pack('B'*_rowid_str_len, *blist)
|