/// <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); }
/// <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)); }
/// <summary> /// 转换成16进制字符串数据 不带空格 /// </summary> /// <param name="Bs"></param> /// <returns></returns> public static string ToHexStringData(this byte[] Bs) { return(TxtToolBLL.GetBytesHexStrD(Bs)); }