| StreamRecordReaderT Constructor (Stream, Int64, Int64, Boolean) |
Namespace:
Ookii.Jumbo.IO
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax protected StreamRecordReader(
Stream stream,
long offset,
long size,
bool seekToOffset
)
Protected Sub New (
stream As Stream,
offset As Long,
size As Long,
seekToOffset As Boolean
)
protected:
StreamRecordReader(
Stream^ stream,
long long offset,
long long size,
bool seekToOffset
)
new :
stream : Stream *
offset : int64 *
size : int64 *
seekToOffset : bool -> StreamRecordReader
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. - seekToOffset
- Type: SystemBoolean
to seek the stream to offset; to leave the stream at the current position.
Remarks
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.
If the stream implements IRecordInputStream with DoNotCrossBoundary set,
and offset + size is on a structural boundary,
StopReadingAtPosition will be set to offset + size.
See Also