示例#1
0
        /// <summary>
        /// 去掉前面的0
        /// </summary>
        /// <param name="Bs"></param>
        /// <param name="Index"></param>
        /// <param name="offset"></param>
        /// <returns></returns>
        public static string ToHexStringDataUNF0(this byte[] Bs, int Index, int offset)
        {
            string s = TxtToolBLL.GetBytesHexStrD(Bs, Index, offset).TrimStart('0');

            if (string.IsNullOrEmpty(s))
            {
                return("0");
            }
            return(s);
        }
示例#2
0
 /// <summary>
 /// 转换成16进制字符串数据
 /// </summary>
 /// <param name="Bs"></param>
 /// <param name="Index"></param>
 /// <param name="offset"></param>
 /// <returns></returns>
 public static string ToHexStringData(this byte[] Bs, int Index, int offset)
 {
     return(TxtToolBLL.GetBytesHexStrD(Bs, Index, offset));
 }
示例#3
0
 /// <summary>
 /// 转换成16进制字符串数据 不带空格
 /// </summary>
 /// <param name="Bs"></param>
 /// <returns></returns>
 public static string ToHexStringData(this byte[] Bs)
 {
     return(TxtToolBLL.GetBytesHexStrD(Bs));
 }