Suppose I have a byte-packed message with the following schema:
Message Name: Ball
Field #1:
Name: Color
Type: unsigned int
Start Bit: 0
Bit Length: 4
Field #2:
Name: Radius
Type: single
Start Bit: 4
Bit Length: 32
Field #3:
Name: New
Type: bool
Start Bit: 36
Bit Length: 1
What is the recommended pythonic way to convert the byte sequence into a python variables? Would the "struct" module work well for unpacking byte arrays that have arbitrary bit length fields?