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
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(CBufBase &, TInt)
Parameters
CBufBase
& aBuf
|
The dynamic buffer hosting the stream.
|
TInt
aPos = 0
|
The offset within the dynamic buffer where the stream is to start. Defaults to zero, if not explicitly specified. The value cannot be greater than the current size of the buffer, otherwise a E32USER-CBase 5 panic will be raised when streaming starts.
|
Member Functions Documentation
Append(CBufBase &)
void
|
Append
|
(
|
CBufBase
&
|
aBuf
|
)
|
[inline]
|
Open a stream that writes to the dynamic buffer specified in the aBuf argument using insert mode.
RBufWriteStream::Insert
Parameters
CBufBase
& aBuf
|
The dynamic buffer that will be the source of this stream.
|
Insert(CBufBase &, TInt)
Parameters
CBufBase
& aBuf
|
The dynamic buffer hosting the stream.
|
TInt
aPos
|
The offset within the dynamic buffer where the stream is to start. Defaults to zero, if not explicitly specified. The value cannot be greater than the current size of the buffer, otherwise a E32USER-CBase 5 panic will be raised when streaming starts.
|
Open(CBufBase &, TInt)
Parameters
CBufBase
& aBuf
|
The dynamic buffer hosting the stream.
|
TInt
aPos = 0
|
The offset within the dynamic buffer where the stream is to start. Defaults to zero, if not explicitly specified. The value cannot be greater than the current size of the buffer, otherwise a E32USER-CBase 5 panic will be raised when streaming starts.
|
Truncate(CBufBase &, TInt)
Parameters
CBufBase
& aBuf
|
The dynamic buffer hosting the stream.
|
TInt
aPos = 0
|
The offset within the dynamic buffer where the stream is to start. Defaults to zero, if not explicitly specified. The value cannot be greater than the current size of the buffer, otherwise a E32USER-CBase 5 panic will be raised when streaming starts.
|
Member Data Documentation
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.