C# Class TailBlazer.Domain.FileHandling.IndexCollection

Inheritance: ILineProvider
Datei anzeigen Open project: RolandPheasant/TailBlazer Class Usage Examples

Private Properties

Property Type Description
CalculateIndexByPositon long
CalculateRelativeIndex RelativeIndex
GetPage TailBlazer.Domain.FileHandling.Page
ReadLinesByIndex IEnumerable
ReadLinesByPosition IEnumerable

Public Methods

Method Description
IndexCollection ( IReadOnlyCollection latest, IndexCollection previous, FileInfo info, Encoding encoding ) : System
ReadLines ( ScrollRequest scroll ) : IEnumerable

Reads the lines.

Private Methods

Method Description
CalculateIndexByPositon ( long position ) : long
CalculateRelativeIndex ( int index ) : RelativeIndex
GetPage ( ScrollRequest scroll ) : TailBlazer.Domain.FileHandling.Page
ReadLinesByIndex ( ScrollRequest scroll ) : IEnumerable
ReadLinesByPosition ( ScrollRequest scroll ) : IEnumerable

Method Details

IndexCollection() public method

public IndexCollection ( IReadOnlyCollection latest, IndexCollection previous, FileInfo info, Encoding encoding ) : System
latest IReadOnlyCollection
previous IndexCollection
info System.IO.FileInfo
encoding System.Text.Encoding
return System

ReadLines() public method

Reads the lines.
public ReadLines ( ScrollRequest scroll ) : IEnumerable
scroll ScrollRequest The scroll.
return IEnumerable