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_CRBufReadStream(const CBufBase &aBuf,
TIntaPos = 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 & aBufThe dynamic buffer that will be the source of this stream.
TInt aPos = 0The offset within the dynamic buffer where the stream starts.

Member Functions Documentation

Open(const CBufBase &, TInt)

IMPORT_C voidOpen(const CBufBase &aBuf,
TIntaPos = 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 & aBufThe dynamic buffer that will be the source of this stream.
TInt aPos = 0The offset within the dynamic buffer where the stream starts.

Member Data Documentation

TBufBuf iSource

TBufBuf iSource[private]