class RBufWriteStream : public RWriteStream |
Supports the writing of a stream to 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.
Public Member Functions | |
---|---|
RBufWriteStream() | |
RBufWriteStream(const MExternalizer< TStreamRef > &) | |
RBufWriteStream(CBufBase &, TInt) | |
void | Append(CBufBase &) |
IMPORT_C void | Insert(CBufBase &, TInt) |
IMPORT_C void | Open(CBufBase &, TInt) |
IMPORT_C void | Truncate(CBufBase &, TInt) |
Private Attributes | |
---|---|
TBufBuf | iSink |
RBufWriteStream | ( | ) | [inline] |
Default constructor. Constructs an empty write stream object.
Call Open(), Truncate() or Insert() to prepare a stream for writing.
RBufWriteStream | ( | 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. |
void | Append | ( | CBufBase & | aBuf | ) | [inline] |
Open a stream that writes to the dynamic buffer specified in the aBuf argument using insert mode.
CBufBase & aBuf | The dynamic buffer that will be the source of this stream. |