RShareReadStream Class Reference

class RShareReadStream : public RReadStream

Supports the opening, for reading, of a stream which shares its host with other streams.

This is also called a shared read stream.

The class uses a RShareBuf stream buffer.

RShareBuf RFileBuf

Inherits from

Constructor & Destructor Documentation

RShareReadStream()

RShareReadStream ( ) [inline]

Constructs an empty shared read stream object.

Call Open() to prepare the shared stream for reading.

RShareReadStream::Open()

RShareReadStream(TStreamExchange &, TStreamPos)

IMPORT_C RShareReadStream ( TStreamExchange & aHost,
TStreamPos aPos = KStreamBeginning
)

Constructs the shared read stream object and prepares the shared stream for reading.

KStreamBeginning

Parameters

TStreamExchange & aHost The object that manages shared streaming.
TStreamPos aPos = KStreamBeginning The position of the stream within the host stream. Defaults to the beginning of the host stream, if not explicitly specified.

Member Functions Documentation

Open(TStreamExchange &, TStreamPos)

IMPORT_C void Open ( TStreamExchange & aHost,
TStreamPos aPos = KStreamBeginning
)

Prepares the shared stream for reading.

Parameters

TStreamExchange & aHost The object that manages shared streaming.
TStreamPos aPos = KStreamBeginning The position of the stream within the host stream. Defaults to the beginning of the host stream, if not explicitly specified.

Member Data Documentation

RShareBuf iSource

RShareBuf iSource [private]