VAGSuite.EDC15VFileParser.FindSVBL C# (CSharp) Метод

FindSVBL() публичный Метод

public FindSVBL ( byte allBytes, string filename, SymbolCollection newSymbols, List newCodeBlocks ) : void
allBytes byte
filename string
newSymbols SymbolCollection
newCodeBlocks List
Результат void
        public override void FindSVBL(byte[] allBytes, string filename, SymbolCollection newSymbols, List<CodeBlock> newCodeBlocks)
        {
            if (!FindSVBLSequenceOne(allBytes, filename, newSymbols, newCodeBlocks))
            {
                if (!FindSVBLSequenceTwo(allBytes, filename, newSymbols, newCodeBlocks))
                {
                    if (!FindSVBLSequenceThree(allBytes, filename, newSymbols, newCodeBlocks))
                    {
                        // set C300 map with length 1= SVBL
                        foreach (SymbolHelper sh in newSymbols)
                        {
                            if (sh.X_axis_ID == 0xC300)
                            {
                                Console.WriteLine(sh.Length);
                                if (sh.Length == 2)
                                {
                                    sh.Category = "Detected maps";
                                    sh.Subcategory = "Limiters";
                                    sh.Varname = "SVBL Boost limiter [" + DetermineNumberByFlashBank(sh.Flash_start_address, newCodeBlocks) + "]";
                                    sh.CodeBlock = DetermineCodeBlockByByAddress(sh.Flash_start_address, newCodeBlocks);

                                }
                            }
                        }
                    }
                }
            }
        }