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_CRShareReadStream(TStreamExchange &aHost,
TStreamPosaPos = KStreamBeginning
)

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

KStreamBeginning

Parameters

TStreamExchange & aHostThe object that manages shared streaming.
TStreamPos aPos = KStreamBeginningThe 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 voidOpen(TStreamExchange &aHost,
TStreamPosaPos = KStreamBeginning
)

Prepares the shared stream for reading.

Parameters

TStreamExchange & aHostThe object that manages shared streaming.
TStreamPos aPos = KStreamBeginningThe 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]