|
||
class MStreamOutput;
An interface to an object that acts as source for write operations to a stream. The object behaves as a generic data source.
A stream output object can act as an intelligent buffer, and is useful for performing filtering, compression or any other general kind of conversion operation that might be needed before writing to a stream.
The class is pure interface and requires an implementation.
Defined in MStreamOutput
:
PullL(TAny *,TInt)
Writes data to an intermediate buffer from this stream output object.WriteToL(MStreamBuf &,TStreamTransfer)
Writes data to the specified stream from this stream output object.MStreamBuf::WriteL(const TAny *,TInt)
Writes data from the specified memory location into the stream buffer.virtual TInt PullL(TAny *aPtr, TInt aMaxLength)=0;
Writes data to an intermediate buffer from this stream output object.
This function is called by the default implementation of TStreamBuf::DoWriteL(MStreamOutput &,TStreamTransfer)
and assumes that the target is a stream buffer's intermediate buffer.
|
|
TStreamBuf::DoWriteL(const TAny *,TInt)
Writes data from the specified memory location into the intermediate buffer.virtual TStreamTransfer WriteToL(MStreamBuf &aSink, TStreamTransfer aTransfer)=0;
Writes data to the specified stream from this stream output object.
This function is called by the default implementation of MStreamBuf::DoWriteL(MStreamOutput &,TStreamTransfer)
. It may also be called by TStreamBuf::DoWriteL(MStreamOutput &,TStreamTransfer)
, depending on the amount of data to be transferred and the nature of the buffering scheme.
|
|
MStreamBuf::DoWriteL(const TAny *,TInt)
TStreamBuf::DoWriteL(const TAny *,TInt)
Writes data from the specified memory location into the intermediate buffer.