class RDesWriteStream : public RWriteStream |
Supports the writing of a stream to a stream buffer hosted by an 8-bit descriptor.
Public Member Functions | |
---|---|
RDesWriteStream () | |
RDesWriteStream (const MExternalizer < TStreamRef > &) | |
RDesWriteStream ( TDes8 &) | |
IMPORT_C void | Open ( TDes8 &) |
Private Attributes | |
---|---|
TDesBuf | iSink |
RDesWriteStream | ( | ) | [inline] |
Constructs an empty write stream object.
Call Open() to prepare a stream for writing.
RDesWriteStream | ( | const MExternalizer < TStreamRef > & | anExter | ) | [inline] |
Constructs a write stream with an externalizer. For example, CStoreMap implements MExternalizer<TStreamRef> .
const MExternalizer < TStreamRef > & anExter | Specifies an externalizer. |
IMPORT_C | RDesWriteStream | ( | 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.
TDes8 & aDes | The descriptor hosting the stream. |
IMPORT_C void | Open | ( | 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()
TDes8 & aDes | The descriptor that will be the sink of this stream. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.