| 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
)
Public Sub New (
stream As Stream,
offset As Long,
size As Long,
allowRecordReuse As Boolean
)
public:
RecordFileReader(
Stream^ stream,
long long offset,
long long size,
bool allowRecordReuse
)
new :
stream : Stream *
offset : int64 *
size : int64 *
allowRecordReuse : bool -> RecordFileReader
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