We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
x = struct.unpack('<h', data[0:2])[0] y = struct.unpack('<h', data[2:4])[0] z = struct.unpack('<h', data[4:6])[0]
Slicing data causes an extra allocation. Struct should be able to take the whole buffer and split out the values at once.