|
||
class RReadStream;
The read stream interface. The process of internalising from a stream is achieved through a reference to an object of this type.
A store aware class defines an implements an InternalizeL(TInt64 &,RReadStream &)
member function which is used to internalise that object and takes a reference to an RReadStream as the interface to the
read stream.
Defined in RReadStream
:
Attach(MStreamBuf *)
Sets the stream buffer source for this read stream. The existing source (if ther...Close()
Frees resources used by the stream.Detach()
Sets the stream buffer source for this read stream to NULL. The existing source,...Pop()
Removes the cleanup item for this read stream object from the cleanup stack. PushL()
Puts a cleanup item for this read stream object onto the cleanup stack. This all...RReadStream()
Sets the stream buffer source to NULL, which implies that it is safe to closeRReadStream(MStreamBuf *)
Constructs a read stream over the supplied stream buffer.ReadInt16L()
Internalises a TInt16 value. The function reads a 16Â bit value from this stre...ReadInt32L()
Internalises a TInt32 value. The function reads a 32Â bit value from this stre...ReadInt8L()
Internalises a TInt8 value The function reads an 8Â bit value from this stream...ReadL(RWriteStream &)
Writes the content of this stream to the specified write stream.ReadL(RWriteStream &,TInt)
Writes the content of this stream to the specified write stream.ReadL(TDes16 &)
Reads sufficient data from this stream to fill the specified 16 bit descriptor u...ReadL(TDes16 &,TChar)
Reads data from this stream into the 16 bit descriptor, until either the specifi...ReadL(TDes16 &,TInt)
Reads data of specified length from this stream into the specified 16 bit descri...ReadL(TDes8 &)
Reads sufficient data from this stream to fill the specified 8 bit descriptor up...ReadL(TDes8 &,TChar)
Reads data from this stream into the 8 bit descriptor, until either the specifie...ReadL(TDes8 &,TInt)
Reads data of specified length from this stream into the specified 8 bit descrip...ReadL(TInt)
Discards data of specified length read from this stream.ReadL(TUint16 *,TInt)
Reads data of specified length from this stream into the specified 16 bit descri...ReadL(TUint8 *,TInt)
Reads data of specified length from this stream into the location defined by the...ReadReal32L()
Internalises a TReal32 value. The function reads a 32Â bit value from this str...ReadReal64L()
Internalises a TReal64 value. The function reads a 64Â bit value from this str...ReadUint16L()
Internalises a TUint16 value. The function reads a 16Â bit value from this str...ReadUint32L()
Internalises a TUint32 value. The function reads a 32Â bit value from this str...ReadUint8L()
Internalises a TUint8 value. The function reads an 8Â bit value from this stre...Release()
Frees resources before abandoning the stream.Source()
Gets the underlying stream buffer for the read stream. This provides access to t...inline RReadStream();
Sets the stream buffer source to NULL, which implies that it is safe to close
RReadStream::Source()
Gets the underlying stream buffer for the read stream. This provides access to t...inline RReadStream(MStreamBuf *aSource);
Constructs a read stream over the supplied stream buffer.
|
RReadStream::Source()
Gets the underlying stream buffer for the read stream. This provides access to t...inline MStreamBuf* Source();
Gets the underlying stream buffer for the read stream. This provides access to the stream-buffer implementation used by the read stream.
Note:
If the stream buffer supports seeking, this allows the RReadStream client to have random access to the stream data.
|
RReadStream::Attach(MStreamBuf *)
Sets the stream buffer source for this read stream. The existing source (if ther...RReadStream::Detach()
Sets the stream buffer source for this read stream to NULL. The existing source,...inline void Close();
Frees resources used by the stream.
RReadStream::Release()
Frees resources before abandoning the stream.IMPORT_C void Release();
Frees resources before abandoning the stream.
Note that, if a cleanup item for the stream was placed on the cleanup stack when the stream was opened by a call to OpenLC(),
then this function need not be called explicitly; clean up is implicitly done by CleanupStack::PopAndDestroy()
.
IMPORT_C void PushL();
Puts a cleanup item for this read stream object onto the cleanup stack. This allows allocated resources to be cleaned up if a subsequent leave occurs.
inline void Pop();
Removes the cleanup item for this read stream object from the cleanup stack.
IMPORT_C void ReadL(TDes8 &aDes);
Reads sufficient data from this stream to fill the specified 8 bit descriptor up to its maximum length. No other information is read from this read stream.
|
IMPORT_C void ReadL(TDes8 &aDes, TInt aLength);
Reads data of specified length from this stream into the specified 8 bit descriptor. No other information is read from this stream.
|
IMPORT_C void ReadL(TDes8 &aDes, TChar aDelim);
Reads data from this stream into the 8 bit descriptor, until either the specified delimiter is encountered or the descriptor is filled to its maximum length. The resulting data in aDes always includes the delimiter aDelim, if aDes is large enough.
|
IMPORT_C void ReadL(TUint8 *aPtr, TInt aLength);
Reads data of specified length from this stream into the location defined by the specified TUint8 pointer.
|
IMPORT_C void ReadL(TInt aLength);
Discards data of specified length read from this stream.
|
inline void ReadL(RWriteStream &aStream);
Writes the content of this stream to the specified write stream.
|
inline void ReadL(RWriteStream &aStream, TInt aLength);
Writes the content of this stream to the specified write stream.
|
IMPORT_C void ReadL(TDes16 &aDes);
Reads sufficient data from this stream to fill the specified 16 bit descriptor up to its maximum length. No other information is read from this read stream.
|
IMPORT_C void ReadL(TDes16 &aDes, TInt aLength);
Reads data of specified length from this stream into the specified 16 bit descriptor. No other information is read from this stream.
|
IMPORT_C void ReadL(TDes16 &aDes, TChar aDelim);
Reads data from this stream into the 16 bit descriptor, until either the specified delimiter is encountered or the descriptor is filled to its maximum length. The resulting data in aDes always includes the delimiter aDelim, if aDes is large enough.
|
IMPORT_C void ReadL(TUint16 *aPtr, TInt aLength);
Reads data of specified length from this stream into the specified 16 bit descriptor. No other information is read from this stream.
|
IMPORT_C TInt8 ReadInt8L();
Internalises a TInt8 value The function reads an 8Â bit value from this stream and interprets it as a TInt8.
|
IMPORT_C TInt16 ReadInt16L();
Internalises a TInt16 value. The function reads a 16Â bit value from this stream and interprets it as a TInt16.
|
IMPORT_C TInt32 ReadInt32L();
Internalises a TInt32 value. The function reads a 32Â bit value from this stream and interprets it as a TInt32.
|
IMPORT_C TUint8 ReadUint8L();
Internalises a TUint8 value. The function reads an 8Â bit value from this stream and interprets it as a TUint8.
|
IMPORT_C TUint16 ReadUint16L();
Internalises a TUint16 value. The function reads a 16Â bit value from this stream and interprets it as a TUint16.
|
IMPORT_C TUint32 ReadUint32L();
Internalises a TUint32 value. The function reads a 32Â bit value from this stream and interprets it as a TUint32.
|
IMPORT_C TReal32 ReadReal32L();
Internalises a TReal32 value. The function reads a 32Â bit value from this stream and interprets it as a TReal32.
|
IMPORT_C TReal64 ReadReal64L();
Internalises a TReal64 value. The function reads a 64Â bit value from this stream and interprets it as a TReal64.
|
protected: inline void Attach(MStreamBuf *aSource);
Sets the stream buffer source for this read stream. The existing source (if there is one) will be discarded.
This is useful for derived classes, enabling them to set the source following construction.
Note:
RReadStream::Release()
is not called on any discarded stream buffer.
|
RReadStream::Source()
Gets the underlying stream buffer for the read stream. This provides access to t...RReadStream::Detach()
Sets the stream buffer source for this read stream to NULL. The existing source,...protected: inline void Detach();
Sets the stream buffer source for this read stream to NULL. The existing source, if there is one, will be discarded.
Note that RReadStream::Release()
is not called on any discarded stream buffer.
RReadStream::Source()
Gets the underlying stream buffer for the read stream. This provides access to t...RReadStream::Attach(MStreamBuf *)
Sets the stream buffer source for this read stream. The existing source (if ther...