#include <s32mem.h>
class RDesWriteStream : public RWriteStream |
Public Member Functions | |
---|---|
RDesWriteStream() | |
RDesWriteStream(const MExternalizer< TStreamRef > &) | |
RDesWriteStream(TDes8 &) | |
IMPORT_C void | Open(TDes8 &) |
Supports the writing of a stream to a stream buffer hosted by an 8-bit descriptor.
See also: TDesBuf RWriteStream
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>.
See also: MExternalizer CStoreMap
Parameter | Description |
---|---|
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.
See also: RDesWriteStream::Open
Parameter | Description |
---|---|
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()
See also: TDesBuf::Set RWriteStream::Attach
Parameter | Description |
---|---|
aDes | The descriptor that will be the sink of this stream. |