Click or drag to resize

RecordFileReaderT Constructor (Stream, Int64, Int64, Boolean)

Initializes a new instance of the RecordFileReaderT class that reads the specified range of the specified stream, optionally reusing record instances.

Namespace:  Ookii.Jumbo.IO
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public RecordFileReader(
	Stream stream,
	long offset,
	long size,
	bool allowRecordReuse
)

Parameters

stream
Type: System.IOStream
The Stream to read from.
offset
Type: SystemInt64
The position in the stream to start reading.
size
Type: SystemInt64
The number of bytes to read from the stream.
allowRecordReuse
Type: SystemBoolean
if the record reader may re-use the same record instance for every record; if it must create a new instance for every record.
Remarks

The RecordFileReaderT will read a whole number of records until the start of the last record marker encountered is on or after offset + size.

If offset is greater than the header size, the RecordFileReaderT will seek forward from offset until the first record marker found, and read records from there.

See Also