Location:
s32mem.h
Link against: estor.lib
RBufWriteStream
Supported from 5.0
Supports the writing of a stream hosted by 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.
|
Defined in RBufWriteStream
:
Append()
, Insert()
, Open()
, RBufWriteStream()
, Truncate()
Inherited from RWriteStream
:
Attach()
,
Close()
,
CommitL()
,
Detach()
,
Pop()
,
PushL()
,
Release()
,
Sink()
,
WriteInt16L()
,
WriteInt32L()
,
WriteInt8L()
,
WriteL()
,
WriteReal32L()
,
WriteReal64L()
,
WriteUint16L()
,
WriteUint32L()
,
WriteUint8L()
RBufWriteStream();
Constructs an empty write stream object.
Call Open()
, Truncate()
or Insert()
to prepare a stream for writing.
RBufWriteStream(CBufBase& aBuf,TInt aPos=0);
Constructs the object and prepares a stream, to be hosted by the specified dynamic buffer, for writing using the Open()
function.
|
void Open(CBufBase& aBuf,TInt aPos=0);
Prepares a stream for writing.
When streaming takes place, any existing data in the dynamic buffer, starting at the specified offset, will be replaced. The dynamic buffer hosting the stream will be extended, if necessary.
A subsequent call to CommitL()
will not change the size of the buffer.
|
void Truncate(CBufBase& aBuf,TInt aPos=0);
Prepares a stream for writing.
When streaming takes place, any existing data in the buffer, starting at the specified offset, will be replaced. The dynamic buffer hosting the stream will be extended, if necessary.
A subsequent call to CommitL()
truncates the dynamic buffer at the last write point.
|
void Insert(CBufBase& aBuf,TInt aPos);
Prepares a stream for writing.
When streaming takes place, any existing data in the buffer, starting at the specified offset, will be moved to provide space for the streamed data. Existing data in the dynamic buffer is not lost. The dynamic buffer hosting the stream will be extended, if necessary.
A subsequent call to CommitL()
will not change the size of the buffer.
|
void Append(CBufBase& aBuf);
Prepares a stream for writing and appending.
When streaming takes place, the streamed data is appended to any existing data in the dynamic buffer.
A subsequent call to CommitL()
will not change the size of the buffer.
|