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() member function which is used to internalise that object and takes a reference to an RReadStream as the interface to the read stream.
Public Member Functions | |
---|---|
RReadStream() | |
RReadStream(MStreamBuf *) | |
void | Close() |
void | Pop() |
IMPORT_C void | PushL() |
IMPORT_C TInt16 | ReadInt16L() |
IMPORT_C TInt32 | ReadInt32L() |
IMPORT_C TInt8 | ReadInt8L() |
IMPORT_C void | ReadL(TDes8 &) |
IMPORT_C void | ReadL(TDes8 &, TInt) |
IMPORT_C void | ReadL(TDes8 &, TChar) |
IMPORT_C void | ReadL(TUint8 *, TInt) |
IMPORT_C void | ReadL(TInt) |
void | ReadL(RWriteStream &) |
void | ReadL(RWriteStream &, TInt) |
IMPORT_C void | ReadL(TDes16 &) |
IMPORT_C void | ReadL(TDes16 &, TInt) |
IMPORT_C void | ReadL(TDes16 &, TChar) |
IMPORT_C void | ReadL(TUint16 *, TInt) |
IMPORT_C TReal32 | ReadReal32L() |
IMPORT_C TReal64 | ReadReal64L() |
IMPORT_C TUint16 | ReadUint16L() |
IMPORT_C TUint32 | ReadUint32L() |
IMPORT_C TUint8 | ReadUint8L() |
IMPORT_C void | Release() |
MStreamBuf * | Source() |
Protected Member Functions | |
---|---|
void | Attach(MStreamBuf *) |
void | Detach() |
Private Attributes | |
---|---|
MStreamBuf * | iSrc |
RReadStream | ( | ) | [inline] |
Sets the stream buffer source to NULL, which implies that it is safe to close
RReadStream | ( | MStreamBuf * | aSource | ) | [inline] |
Constructs a read stream over the supplied stream buffer.
MStreamBuf * aSource | The stream buffer used to read from the read stream. |
void | Attach | ( | MStreamBuf * | aSource | ) | [protected, inline] |
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:
Release() is not called on any discarded stream buffer.
MStreamBuf * aSource | The new source stream buffer for this read stream. |
void | Detach | ( | ) | [protected, inline] |
Sets the stream buffer source for this read stream to NULL. The existing source, if there is one, will be discarded.
Note that Release() is not called on any discarded stream buffer.
void | Pop | ( | ) | [inline] |
Removes the cleanup item for this read stream object from the cleanup stack.
void | ReadL | ( | RWriteStream & | aStream | ) | [inline] |
Writes the content of this stream to the specified write stream.
RWriteStream & aStream | A reference to the write stream to which this stream is to be written. |
void | ReadL | ( | RWriteStream & | aStream, |
TInt | aLength | |||
) | [inline] |
Writes the content of this stream to the specified write stream.
RWriteStream & aStream | A reference to the write stream to which this stream is to be written. |
TInt aLength | The length of data from this stream to be written to aStream. |
MStreamBuf * | Source | ( | ) | [inline] |
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.
The underlying stream buffer for the read stream.