摘要: 1. int: 可以通过 | 和 << 的方法组合 int i = (int)(date[0]<<24|date[1]<<16|date[2]<<8|date[3]);2.float : float i = 123.444F; byte[] bts = BitConverter.GetBytes(i); //将float转换成字节数组 float j = BitConverter.ToSingle(bts,0); //从字节数组转换成float或int ssr =111;byte[] date = System.Text.Encoding.ASC 阅读全文
posted @ 2012-03-27 16:14 garyChong 阅读(583) 评论(0) 推荐(0) 编辑