VAGSuite.Tools.FindAscii C# (CSharp) Method

FindAscii() private method

private FindAscii ( byte allBytes, int start, int end, int length ) : string
allBytes byte
start int
end int
length int
return string
        private string FindAscii(byte[] allBytes, int start, int end, int length)
        {
            for (int i = start; i < end; i++)
            {
                string testStr = System.Text.ASCIIEncoding.ASCII.GetString(allBytes, i, length);
                testStr = StripNonAsciiCapital(testStr);
                if (testStr.Length == length) return testStr;
            }
            return "";
        }