Ejemplo n.º 1
0
        private List <int> InfoConvert(string str, int length)
        {
            string[]   strInfo    = new string[8];
            ushort[]   ushortInfo = new ushort[16];
            List <int> Infomation = new List <int>();

            ushortInfo = CDataConvert.StringToAscii(str, length);
            strInfo    = CDataConvert.AsciiTo1BitWord(ushortInfo, length * 2);
            for (int i = 0; i < strInfo.Length; i++)
            {
                Infomation.Add(CDataConvert.BinaryStringToRevseInt(strInfo[i]));
            }

            return(Infomation);
        }