Searched defs:struct (Results 1 - 25 of 68) sorted by relevance

123

/external/chromium_org/chrome/common/extensions/docs/examples/api/nativeMessaging/host/
H A Dnative-messaging-example-host10 import struct namespace
23 text_length = struct.unpack('i', text_length_bytes)[0]
34 sys.stdout.write(struct.pack("I", len(response)))
/external/chromium_org/net/data/websocket/
H A Dclose-code-and-reason_wsh.py5 import struct namespace
24 data = struct.pack('!H', int(code)) + reason.encode('utf-8')
H A Dclose-with-split-packet_wsh.py5 import struct namespace
26 code = struct.pack('!H', 1000)
/external/chromium_org/third_party/ots/tools/
H A Dttf-checksum.py1 import struct namespace
6 return struct.unpack('>I', wordBytes)[0]
10 return struct.unpack('>H', wordBytes)[0]
/external/wpa_supplicant_8/wpa_supplicant/utils/
H A Dlog2pcap.py10 import sys, struct, re namespace
14 struct.pack('<IHHIIII',
21 pcap_file.write(struct.pack('<IIII',
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/example/
H A Dclose_wsh.py30 import struct namespace
52 # > data = struct.pack('!H', int(code)) + reason.encode('UTF-8')
/external/chromium_org/tools/gyp/test/win/
H A Dgyptest-link-large-pdb.py13 import struct namespace
34 page_size = struct.unpack('<I', pdb_file.read(4))[0]
/external/chromium_org/ui/resources/resource_check/
H A Dresource_scale_factors.py15 import struct namespace
48 return struct.unpack('>ii', data[16:24])
/external/chromium_org/tools/gyp/pylib/gyp/
H A Dsun_tool.py11 import struct namespace
45 op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
/external/chromium/net/tools/testserver/
H A Dasn1der.py9 import struct namespace
28 return struct.pack(">BB", tag, 0);
30 return struct.pack(">BBH", tag, 0x82, len(data)) + data;
/external/chromium_org/build/android/
H A Dsurface_stats.py48 import fcntl, termios, struct namespace
51 height, _, _, _ = struct.unpack('HHHH',
53 struct.pack('HHHH', 0, 0, 0, 0)))
/external/chromium_org/chrome/browser/policy/test/
H A Dasn1der.py8 import struct namespace
27 return struct.pack(">BB", tag, 0);
29 return struct.pack(">BBH", tag, 0x82, len(data)) + data;
/external/chromium_org/chrome/tools/
H A Dhistory-viz.py15 import struct namespace
171 trans = struct.unpack('I', struct.pack('i', int(trans)))[0]
/external/chromium_org/chrome/tools/process_dumps/
H A Dprocess_dumps_linux.py13 import struct namespace
209 bits = struct.calcsize('P') * 8
/external/chromium_org/v8/tools/testrunner/server/
H A Dcompression.py35 import struct namespace
47 payload = struct.pack('>i', len(compressed)) + compressed
80 size = struct.unpack(">i", size)[0]
/external/clang/test/CXX/dcl.decl/dcl.name/
H A Dp1.cpp5 struct v {};
7 struct s {
9 operator struct v() { return v(); };
16 (void)new struct s;
18 (void)&s::operator struct v;
/external/chromium_org/remoting/tools/
H A Dnative_messaging_host_test.py10 import struct namespace
137 child.stdin.write(struct.pack('I', len(message)))
145 reply_length = struct.unpack('i', reply_length_bytes)[0]
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/handshake/
H A Dhybi00.py48 import struct namespace
207 challenge += struct.pack('!I', key1) # network byteorder int
208 challenge += struct.pack('!I', key2) # network byteorder int
/external/chromium_org/build/mac/
H A Dchange_mach_o_flags.py78 import struct namespace
127 treating it as having endianness specified by |endian| (per the |struct|
133 (uint32,) = struct.unpack(endian + 'I', bytes)
140 |endian| (per the |struct| module), and returns a 7-tuple of its members
147 struct.unpack(endian + '7I', bytes)
154 (per the |struct| module), and returns a 5-tuple of its members as numbers.
160 cputype, cpusubtype, offset, size, align = struct.unpack('>5I', bytes)
167 |struct| module)."""
169 bytes = struct.pack(endian + 'I', uint32)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dplatforminfo.py99 import struct namespace
100 _, _, _, _, _, left, _, right, _, _, _ = struct.unpack("hhhhHhhhhhh", console_screen_buffer_info.raw)
107 import struct namespace
110 _, columns, _, _ = struct.unpack('HHHH', packed)
/external/chromium_org/third_party/simplejson/
H A Ddecoder.py5 import struct namespace
22 # The struct module in Python 2.4 would get frexp() out of range here
26 nan, inf = struct.unpack('dd', _BYTES)
/external/chromium_org/tools/deep_memory_profiler/lib/
H A Dpageframe.py8 import struct namespace
47 pagecount = struct.unpack(
55 pfn = struct.unpack(
/external/chromium_org/tools/grit/grit/format/
H A Ddata_pack.py13 import struct namespace
58 version, num_entries, encoding = struct.unpack("<IIB", data[:HEADER_LENGTH])
71 id, offset = struct.unpack("<HI", data[:kIndexEntrySize])
73 next_id, next_offset = struct.unpack("<HI", data[:kIndexEntrySize])
86 ret.append(struct.pack("<IIB", PACK_FILE_VERSION, len(ids), encoding))
96 ret.append(struct.pack("<HI", id, data_offset))
99 ret.append(struct.pack("<HI", 0, data_offset))
/external/chromium_org/tools/grit/grit/gather/
H A Dchrome_scaled_image.py10 import struct namespace
70 length = 12 + struct.unpack_from('>I', data, pos)[0]
H A Dchrome_scaled_image_unittest.py10 import struct namespace
40 pack_int32 = struct.Struct('>i').pack

Completed in 517 milliseconds

123