I have the following 8 bytes:
b'\x05\x00\x00\x00\x00\x00\x05\x00'
I'm trying to get two integers using struct.unpack: one for the first 2 bytes, and one for the last 6. Getting the first two is easy using:
struct.unpack("<H6B")
But, that returns
(5, 0, 0, 0, 0, 5, 0)
I want it to return the following:
(5, 5)
How do I get the integer value of the last 6 bytes? I do not want each byte individually.