Lines Matching refs:struct
26 import struct
75 version, last_timestamp_ms = struct.unpack_from('=bQ', snooz)
101 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
108 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
111 sys.stdout.write(struct.pack('>II', length, length))
112 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
113 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
128 …length, packet_length, delta_time_ms, snooz_type = struct.unpack_from('=HHIb', decompressed, offse…
135 …length, packet_length, delta_time_ms, snooz_type = struct.unpack_from('=HHIb', decompressed, offse…
138 sys.stdout.write(struct.pack('>II', packet_length, length))
139 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0))
140 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))