摘要: C++的消息结构体如下 阅读全文
posted @ 2018-11-13 08:52 孤獨龍 阅读(646) 评论(0) 推荐(0) 编辑
摘要: //结构体转字节数组 public byte[] StructToBytes (object structObj) { int size = Marshal.SizeOf (structObj);//获取结构体的大小 IntPtr buffer = Marshal.AllocHGlobal (size);//分配内存 ... 阅读全文
posted @ 2018-11-13 08:47 孤獨龍 阅读(1232) 评论(0) 推荐(1) 编辑