VAGSuite.MSA15FileParser.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 == 0xEB || idstrip == 0xDF)
            {
                if (length > 0 && length <= 32) return true;
            }
            else
            {
                if (length > 0 && length < 32) return true;
            }
            //            if (length == 32 || length == 48 || length == 64) Console.WriteLine("seen id " + id.ToString("X4") + " with len " + length.ToString());
            return false;
        }