2013年4月26日
摘要: 最近在使用结构体与字节数组转化来实现socket间数据传输。现在开始整理一下。对于Marshal可以查阅msdn,关于字节数组与结构体转代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.InteropServices;namespace FileSendClient{ [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet... 阅读全文
posted @ 2013-04-26 15:43 RedLight 阅读(26965) 评论(3) 推荐(2) 编辑