RDesWriteStream Class Reference

class RDesWriteStream : public RWriteStream

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

TDesBuf RWriteStream

Inherits from

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>.

MExternalizer CStoreMap

Parameters

const MExternalizer< TStreamRef > & 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.

RDesWriteStream::Open

Parameters

TDes8 & aDesThe descriptor hosting the stream.

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

TDesBuf::Set RWriteStream::Attach

Parameters

TDes8 & aDesThe descriptor that will be the sink of this stream.

Member Data Documentation

TDesBuf iSink

TDesBuf iSink[private]