VAGSuite.EDC15PFileParser.isValidLength C# (CSharp) Метод

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

private isValidLength ( int length, int id ) : bool
length int
id int
Результат bool
        private bool isValidLength(int length, int id)
        {
            int idstrip = id / 256;
            if ((idstrip & 0xF0) == 0xE0)
            //if (idstrip == 0xEB /*|| idstrip == 0xDE*/)
            {
                if (length > 0 && length <= 32) return true;
            }
            else
            {
                if (length > 0 && length < 32) return true;
            }
            //if (length <= 64) Console.WriteLine("seen id " + id.ToString("X4") + " with len " + length.ToString());

            return false;
        }