会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Netop
博客园
首页
新随笔
联系
订阅
管理
04 2015 档案
取消结构体的自动对齐
摘要:使用 __attribute__((packed))例如struct TEST { short x; int y;}__attribute__((packed));此时sizeof(TEST)等于6,可见此时不是自动对齐或者使用#pragma pack,详见百度百科
阅读全文
posted @
2015-04-11 19:20
Netop
阅读(1385)
评论(0)
推荐(0)
公告