VAGSuite.EDC15MFileParser.isValidLength C# (CSharp) Méthode

isValidLength() private méthode

private isValidLength ( int length, int id ) : bool
length int
id int
Résultat bool
        private bool isValidLength(int length, int id)
        {
            int idstrip = id / 256;
            if (idstrip == 0xEB /*|| idstrip == 0xDE*/)
            {
                if (length > 0 && length <= 32) return true;
            }
            else
            {
                if (length > 0 && length < 32) return true;
            }
            return false;
        }