关于C结构体对齐注意事项
在C语言中Specifies packing alignment for structure, union, and class members.
#pragma pack( [ show ] | [ push | pop ] [, identifier ] , n )
pack对齐对enum无效,且sizeof(enum类型)总是4.详细请见MSDN.
在C语言中Specifies packing alignment for structure, union, and class members.
#pragma pack( [ show ] | [ push | pop ] [, identifier ] , n )
pack对齐对enum无效,且sizeof(enum类型)总是4.详细请见MSDN.