标题:C#中把byte转换成16进制的方法??
只看楼主
gundumw100
Rank: 1
等 级:新手上路
帖 子:70
专家分:0
注 册:2008-1-22
 问题点数:0 回复次数:0 
C#中把byte转换成16进制的方法??
byte[] buff = { 0x87, 0x00, 0x57, 0x01, 0x31, 0x33, 0x38, 0x30, 0x30, 0x31, 0x33, 0x38, 0x30,
                0x30, 0x30, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
                0x00, 0x3b, 0x02, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x12, 0x34, 0x56, 0x78,
                0xab, 0xcd, 0xef, 0x00, 0x00, 0x01, 0x30, 0x30, 0x37, 0x05, 0x81, 0x8d, 0x23, 0x02, 0x24,
                0x25, 0x04, 0x00, 0x19, 0x10, 0x1a, 0x41, 0x35, 0x2a, 0x25, 0x5b, 0x76, 0x5d, 0x8a, 0x34,
               0x3c, 0x11, 0x7f, 0x1e, 0x74, 0x43, 0x32, 0x39, 0x34, 0x46, 0x46, 0x37, 0x45, 0x47};
就是要转换成这种样子。。
搜索更多相关主题的帖子: byte 进制 buff 
2008-02-26 17:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-201025-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.125372 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved