AsmHighlighter.Lexer.Scanner.TextBuff.GetString C# (CSharp) Метод

GetString() публичный закрытый Метод

Returns the string from the buffer between the given file positions. This needs to be done carefully, as the number of characters is, in general, not equal to (end - beg).
public final GetString ( int beg, int end ) : string
beg int Begin filepos
end int End filepos
Результат string
            public sealed override string GetString(int beg, int end)
            {
                int i;
                if (end - beg <= 0) return "";
                long savePos = bStrm.Position;
                char[] arr = new char[end - beg];
                bStrm.Position = (long)beg;
                for (i = 0; bStrm.Position < end; i++)
                    arr[i] = (char)Read();
                bStrm.Position = savePos;
                return new String(arr, 0, i);
            }