摘要: 字符串转16进制字节数组Byte[] res = System.Text.Encoding.ASCII.GetBytes(str.ToCharArray());先将str转成字符数组,然后再将字符转成字节。//16进制字符串转为16进制字符数组public static byte[] Hex2ByteArr(string newString) { int len = newString.Length / 2; byte[] arr = new byte[len]; for (int i = 0; i /// 字符串转16进制字节数组/// /// /// private static byte 阅读全文
posted @ 2013-11-08 09:37 shuenjian901 阅读(261) 评论(0) 推荐(0) 编辑