返回首页

有位在C字段的定义,用它可以节省内存。

struct{

   unit32 aa:3;

   unit32 bb:12;

   unit32 cc:15;

   unit32 :2;//reserved

}my bit field;

结构""我的位字段,只需要在内存中多达32位;
我的问题是我们如何才能做到这在C#,非常感谢。

回答

评论会员: 时间:2
O