If I have a C++ struct, defining a 64bit data word such as..
struct SMyDataWord
{
int Name : 40;
int Colour : 24;
};
What does the : 40
syntax mean... does it mean that the first 40 bits are reserved for the Name and the remaining 24 bits for the Colour?
This is how it appears to be being used, but I've not come across it before.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…