//c struct code with filed width:
struct{
unsigned int x:1;
unsigned int y:25;
unsigned int z:6;
};
Now I want to rewrite it in python, pack it and send to network,
The package struct in python, can pack/unpack data types.
such as:
struct.pack('!I10s',1,'hello')
But I don't know how to deal with struct with filed width as the c struct example. Any one know?