BTool.DeviceFormUtils.String2BDA_LSBMSB C# (CSharp) Method

String2BDA_LSBMSB() public method

public String2BDA_LSBMSB ( string bdaStr ) : byte[]
bdaStr string
return byte[]
        public byte[] String2BDA_LSBMSB(string bdaStr)
        {
            byte[] numArray = new byte[6];
            try
            {
                string[] strArray = bdaStr.Split(m_sp_colon);
                if (strArray.Length != 6)
                    return null;
                for (int index = 0; index < 6; ++index)
                    try
                    {
                        numArray[5 - index] = Convert.ToByte(strArray[index], 16);
                    }
                    catch
                    {
                        return null;
                    }
            }
            catch
            {
                return null;
            }
            return numArray;
        }