Quote:
Originally Posted by writchie
Perhaps you overlooked python struct. It doesn't get easier than struck.unpack_from(), especially in cross-endian situations.
|
I'm well aware of struct in Python. It operates on bytes, not bits. Several things in the data stream are bitfields, and it's hard to beat a C struct with each bit individually named that you can just set to 1 or 0. Python structs don't allow this that I'm aware of.