RBufReadStream Class Reference

#include <s32mem.h>

class RBufReadStream : public RReadStream

Inherits from

Detailed Description

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.

See also: TBufBuf RReadStream

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.

See also: RBufReadStream::Open

Parameters
aBufThe dynamic buffer that will be the source of this stream.
aPosThe offset within the dynamic buffer where the stream starts.

Member Function 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()

See also: TBufBuf::Set RReadStream::Attach

Parameters
aBufThe dynamic buffer that will be the source of this stream.
aPosThe offset within the dynamic buffer where the stream starts.