Alc*_*ott 0 c struct
可能重复: 'unsigned temp:3'表示什么
A struct的定义是这样的,
struct
typedef struct { uint32_t length : 8; uint32_t offset : 24; uint32_t type : 8; } A;
我还没有看到这种定义之前,这是什么意思:8和:24?
:8
:24
Som*_*ude 6
它定义了位域.这告诉编译器length8位,offset是24位,type也是8位.
length
offset
type
归档时间:
13 年,5 月 前
查看次数:
152 次
最近记录: