首页 极刻 圈子 教程 开源
极客社区
写文章 发极刻 建圈子 发项目
标签 charr 相关标签 byte bytes c# char fieldoffset

C#不用union,而是有更好的方式实现

int i;};[FieldOffset(0)] public int i;} 就可以实现。int i;float f;[FieldOffset(0)] public int i;float f3 = *(float *)chArr;

微软信仰中心 2018-05-24 23:12:59

推荐极客

Blaze Blaze 80407013 80407013 fundebug fundebug 81293313 81293313 87627995 87627995 88916570 88916570 84214254 84214254 86593278 86593278

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.