Exemplo n.º 1
0
        /// <summary>
        ///     Retrieves all entries for the given <paramref name="columns" /> of the given <paramref name="section" />
        ///     from this log file.
        /// </summary>
        /// <param name="logFile"></param>
        /// <param name="section"></param>
        /// <param name="columns"></param>
        /// <returns></returns>
        public static IReadOnlyLogEntries GetEntries(this ILogFile logFile, LogFileSection section, IEnumerable <ILogFileColumn> columns)
        {
            var buffer = new LogEntryBuffer(section.Count, columns);

            GetEntries(logFile, section, buffer);
            return(buffer);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Retrieves all entries with the given <paramref name="columns" /> of the given <paramref name="indices" />
        ///     from this log file.
        /// </summary>
        /// <param name="logFile"></param>
        /// <param name="indices"></param>
        /// <param name="columns"></param>
        /// <returns></returns>
        public static IReadOnlyLogEntries GetEntries(this ILogFile logFile, IReadOnlyList <LogLineIndex> indices, IEnumerable <ILogFileColumn> columns)
        {
            var buffer = new LogEntryBuffer(indices.Count);

            logFile.GetEntries(indices, buffer);
            return(buffer);
        }
Exemplo n.º 3
0
        public static IReadOnlyLogEntries GetEntries(this ILogFile logFile, IReadOnlyList <LogLineIndex> indices, params ILogFileColumn[] columns)
        {
            var buffer = new LogEntryBuffer(indices.Count, columns);

            logFile.GetEntries(indices, buffer);
            return(buffer);
        }
Exemplo n.º 4
0
            public LogEntryAccessor(LogEntryBuffer buffer, int index)
            {
                if (buffer == null)
                {
                    throw new ArgumentNullException(nameof(buffer));
                }

                _buffer = buffer;
                _index  = index;
            }