Conversion of 24bit binary to int
Peter Hansen
peter at engcorp.com
Tue Nov 11 10:11:05 EST 2003
Idar wrote:
>
> Is there an effecient/fast way in python to convert binary data from file
> (24bit hex(int) big endian) to 32bit int (little endian)? Have seen
> struct.unpack, but I am unsure how and what Python has to offer. Idar
I think the question is unclear. You say you've seen struct.unpack.
So what then? Don't you think struct.unpack will work? What do you
mean you are unsure how and what Python has to offer? The documentation
which is on the web site clearly explains how and what struct.unpack
has to offer...
Please clarify.
-Peter
More information about the Python-list
mailing list