Possible Duplicate:
What does this C++ code mean?
I'm trying to map a C structure to Java using JNA. I came across something that I've never seen.
The struct
definition is as follows:
struct op
{
unsigned op_type:9; //---> what does this mean?
unsigned op_opt:1;
unsigned op_latefree:1;
unsigned op_latefreed:1;
unsigned op_attached:1;
unsigned op_spare:3;
U8 op_flags;
U8 op_private;
};
You can see some variable being defined like unsigned op_attached:1
and I'm unsure what would that mean. Would that effect the number of bytes to be allocated for this particular variable?