LineRecordReader Constructor (Stream, Int64, Int64, Boolean) |
Namespace: Ookii.Jumbo.IO
public LineRecordReader( Stream stream, long offset, long size, bool allowRecordReuse )
The reader will start reading at offset. If offset is larger than zero, the reader will seek ahead to the start of the next record and read from there.
The reader will read a whole number of records until the start of the next record falls after offset + size. Because of this, the reader can read more than size bytes.
The reader will check if stream implements IRecordInputStream with RecordOptions set to DoNotCrossBoundary. If so, if offset falls on a structural boundary the reader will not seek ahead because it knows structural boundaries are record boundaries; if offset + size falls on a structural boundary, the reader is guaranteed to not read beyond offset + size.