C#结构与指针互相操作_结构与byte数组_所有字符串详解
结构体转byte数组: /**//// /// 结构体转byte数组 /// /// 要转换的结构体 /// 转换后的byte数组 public static byte[] StructToBytes(object structObj) { //得到结构体的大小 int size = Mars
结构体转byte数组: /**//// /// 结构体转byte数组 /// /// 要转换的结构体 /// 转换后的byte数组 public static byte[] StructToBytes(object structObj) { //得到结构体的大小 int size = Mars