|
||
class MStreamInput;
An interface to an object that acts as a target for read operations from a stream. The object behaves as a generic data sink.
A stream input 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 after reading from a stream.
The class is pure interface and requires an implementation.
Defined in MStreamInput
:
PushL(const TAny *,TInt)
Reads data from an intermediate buffer into this stream input object.ReadFromL(MStreamBuf &,TStreamTransfer)
Reads data from the specified stream into this stream input object.MStreamBuf::ReadL(TAny *,TInt)
Reads data from the stream buffer into the specified memory location.virtual TInt PushL(const TAny *aPtr, TInt aMaxLength)=0;
Reads data from an intermediate buffer into this stream input object.
This function is called by the default implementation of TStreamBuf::DoReadL(MStreamInput &,TStreamTransfer)
and assumes that the source is a stream buffer's intermediate buffer.
|
|
TStreamBuf::DoReadL(TAny *,TInt)
Reads data from the intermediate buffer into the specified memory location.virtual TStreamTransfer ReadFromL(MStreamBuf &aSource, TStreamTransfer aTransfer)=0;
Reads data from the specified stream into this stream input object.
This function is called by the default implementation of MStreamBuf::DoReadL(MStreamInput &,TStreamTransfer)
. It may also be called by TStreamBuf::DoReadL(MStreamInput &,TStreamTransfer)
, depending on the amount of data to be transferred and the nature of the buffering scheme.
|
|
MStreamBuf::DoReadL(TAny *,TInt)
TStreamBuf::DoReadL(TAny *,TInt)
Reads data from the intermediate buffer into the specified memory location.