摘要: 使用 __attribute__((packed))例如struct TEST { short x; int y;}__attribute__((packed));此时sizeof(TEST)等于6,可见此时不是自动对齐或者使用#pragma pack,详见百度百科 阅读全文
posted @ 2015-04-11 19:20 Netop 阅读(1383) 评论(0) 推荐(0)