I have a byte stream with 3 bytes that I have to cast into an unsigned int 32. In C I would just use bzero to zero out the memory region of my integer and then copy the memory from the stream, something like
char* stream = ...;
Uint32 myInt;
bzero(myInt,4);
memcopy(myInt, stream[0], stream[3])
Question:
How would I do this in Python?
Cheers