RDesWriteStream Class Reference

#include <s32mem.h>

class RDesWriteStream : public RWriteStream

Inherits from

Detailed Description

Supports the writing of a stream to a stream buffer hosted by an 8-bit descriptor.

See also: TDesBuf RWriteStream

Constructor & Destructor Documentation

RDesWriteStream ( )

RDesWriteStream()[inline]

Constructs an empty write stream object.

Call Open() to prepare a stream for writing.

RDesWriteStream ( const MExternalizer< TStreamRef > & )

RDesWriteStream(const MExternalizer< TStreamRef > &anExter)[inline]

Constructs a write stream with an externalizer. For example, CStoreMap implements MExternalizer<TStreamRef>.

See also: MExternalizer CStoreMap

Parameters
anExterSpecifies an externalizer.

RDesWriteStream ( TDes8 & )

IMPORT_CRDesWriteStream(TDes8 &aDes)

Constructs the RDesWriteStream object and prepares a stream to be hosted by the specified 8-bit descriptor for writing using the Open() function.

See also: RDesWriteStream::Open

Parameters
aDesThe descriptor hosting the stream.

Member Function Documentation

Open ( TDes8 & )

IMPORT_C voidOpen(TDes8 &aDes)

Prepares a stream for writing.

When streaming takes place, any existing data in the descriptor will be replaced. Note that the maximum length of the descriptor must be big enough to accommodate the expected streamed data, otherwise the subsequent streaming operation will leave with KErrOverFlow.

A subsequent call to CommitL() sets the length of the descriptor.

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

See also: TDesBuf::Set RWriteStream::Attach

Parameters
aDesThe descriptor that will be the sink of this stream.