hextostring,hextostring java

hextostring,hextostring java,HexToString

HexToString(const char *szContent, int len, bool bHasSpace)
{
 string str = "";
 for (int i=0; i i++)
 {
 char strTemp[8] = {0};
 if (bHasSpace)
 {
 sprintf(strTemp, "%02X ", (BYTE)szContent[i]);
 }
 else
 {
 sprintf(strTemp, "%02X", (BYTE)szContent[i]);
 }
 str += strTemp;
 }
 return str;
}

TAG标签:

文章标题:hextostring,hextostring java

转载注明出处:http://www.puyangxw.cn/zonhezixunn/442392.html

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!

随机标签推荐

濮阳新闻