RBufReadStream Class Reference

class RBufReadStream : public RReadStream

Supports the opening of an existing stream hosted by a dynamic buffer. The stream does not take ownership of the dynamic buffer, which means that the creator is responsible for deleting the buffer when it is no longer needed.

TBufBuf RReadStream

Inherits from

Constructor & Destructor Documentation

RBufReadStream()

RBufReadStream ( ) [inline]

Constructs an empty read stream object.

Call Open() to prepare the stream for reading.

RBufReadStream(const CBufBase &, TInt)

IMPORT_C RBufReadStream ( const CBufBase & aBuf,
TInt aPos = 0
)

Constructs the RBufReadStream object and opens the stream hosted by the specified dynamic buffer for reading using the Open() method.

RBufReadStream::Open

Parameters

const CBufBase & aBuf The dynamic buffer that will be the source of this stream.
TInt aPos = 0 The offset within the dynamic buffer where the stream starts.

Member Functions Documentation

Open(const CBufBase &, TInt)

IMPORT_C void Open ( const CBufBase & aBuf,
TInt aPos = 0
)

Prepares the stream hosted by the specified dynamic buffer for reading.

To close the stream and free its resources call Close()

TBufBuf::Set RReadStream::Attach

Parameters

const CBufBase & aBuf The dynamic buffer that will be the source of this stream.
TInt aPos = 0 The offset within the dynamic buffer where the stream starts.

Member Data Documentation

TBufBuf iSource

TBufBuf iSource [private]