Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14155

Python struct.pack and unpack

$
0
0

I want to reverse the packing of the following code:

struct.pack("<"+"I"*elements, *self.buf[:elements])

I know "<" means little endian and "I" is unsigned int. How can I use struct.unpack to reverse the packing?


Viewing all articles
Browse latest Browse all 14155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>