您当前的位置: 首页 >  unity

程序员正茂

暂无认证

  • 1浏览

    0关注

    283博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity C#以16进制显示byte数组

程序员正茂 发布时间:2021-08-17 14:51:52 ,浏览量:1

    private string byteToHexStr(byte[] bytes, int startIndex, int endIndex)     {         if (bytes == null)             return "";         StringBuilder builder = new StringBuilder();         for (int i = startIndex; i < endIndex; i++)         {             builder.Append(string.Format("{0:X2} ", bytes[i]));         }         string returnStr = builder.ToString().Trim();         return returnStr;     }

关注
打赏
1660743125
查看更多评论
立即登录/注册

微信扫码登录

0.0365s