BEncodeLib.TorrentBDecoder.DecodeByteString C# (CSharp) Метод

DecodeByteString() приватный Метод

private DecodeByteString ( ) : byte[]
Результат byte[]
        private byte[] DecodeByteString()
        {
            int c = GetNextIndicator();
            int num = c - '0';

            if (num < 0 || num > 9)
                throw new FormatException(string.Format("Number expected, '{0}' received", (char) c));

            _indicator = 0;

            c = Read();
            int i = c - '0';
            while (i >= 0 && i <= 9)
            {
                // XXX - This can overflow!
                num = num*10 + i;
                c = Read();
                i = c - '0';
            }

            if (c != ':')
                throw new FormatException("Colon expected, not '" + (char) c + "'");

            return Read(num);
        }