RBufWriteStream Class Reference

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.

TBufBuf

RWriteStream

Inherits from

Constructor & Destructor Documentation

RBufWriteStream()

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 > &)

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

RBufWriteStream(CBufBase &, TInt)

IMPORT_CRBufWriteStream(CBufBase &aBuf,
TIntaPos = 0
)

Parameters

CBufBase & aBuf
TInt aPos = 0

Member Functions Documentation

Append(CBufBase &)

voidAppend(CBufBase &aBuf)[inline]

Open a stream that writes to the dynamic buffer specified in the aBuf argument using insert mode.

RBufWriteStream::Insert

Parameters

CBufBase & aBufThe dynamic buffer that will be the source of this stream.

Insert(CBufBase &, TInt)

IMPORT_C voidInsert(CBufBase &aBuf,
TIntaPos
)

Parameters

CBufBase & aBuf
TInt aPos

Open(CBufBase &, TInt)

IMPORT_C voidOpen(CBufBase &aBuf,
TIntaPos = 0
)

Parameters

CBufBase & aBuf
TInt aPos = 0

Truncate(CBufBase &, TInt)

IMPORT_C voidTruncate(CBufBase &aBuf,
TIntaPos = 0
)

Parameters

CBufBase & aBuf
TInt aPos = 0

Member Data Documentation

TBufBuf iSink

TBufBuf iSink[private]