class RWriteStream |
The write stream interface. The process of externalising to a stream is achieved through a reference to an object of this type.
A store aware class defines and implements an ExternalizeL() member function which is used to externalise that object and takes a reference to an RWriteStream as the interface to the write stream.
Public Member Functions | |
---|---|
RWriteStream() | |
RWriteStream(const MExternalizer< TStreamRef > &) | |
RWriteStream(MStreamBuf *) | |
IMPORT_C void | Close() |
IMPORT_C void | CommitL() |
void | Pop() |
IMPORT_C void | PushL() |
IMPORT_C void | Release() |
MStreamBuf * | Sink() |
IMPORT_C void | WriteInt16L(TInt) |
IMPORT_C void | WriteInt32L(TInt32) |
IMPORT_C void | WriteInt8L(TInt) |
IMPORT_C void | WriteL(const TDesC8 &) |
IMPORT_C void | WriteL(const TDesC8 &, TInt) |
IMPORT_C void | WriteL(const TUint8 *, TInt) |
IMPORT_C void | WriteL(RReadStream &) |
IMPORT_C void | WriteL(RReadStream &, TInt) |
IMPORT_C void | WriteL(const TDesC16 &) |
IMPORT_C void | WriteL(const TDesC16 &, TInt) |
IMPORT_C void | WriteL(const TUint16 *, TInt) |
IMPORT_C void | WriteReal32L(TReal) |
IMPORT_C void | WriteReal64L(TReal64) |
IMPORT_C void | WriteUint16L(TUint) |
IMPORT_C void | WriteUint32L(TUint32) |
IMPORT_C void | WriteUint8L(TUint) |
Protected Member Functions | |
---|---|
void | Attach(MStreamBuf *) |
void | Detach() |
Private Member Functions | |
---|---|
IMPORT_C void | WriteRefL(TStreamRef) |
Private Attributes | |
---|---|
const MExternalizer< TStreamRef > * | iExterL |
MStreamBuf * | iSnk |
RWriteStream | ( | ) | [inline] |
The stream buffer sink, as returned by Sink(), is set to NULL, and the stream has no associated Store map.
RWriteStream | ( | const MExternalizer< TStreamRef > & | anExter | ) | [inline] |
Constructs a write stream with an associated store map. The stream buffer sink is set to NULL.
const MExternalizer< TStreamRef > & anExter | Specifies an externaliser. For example, CStoreMap implements MExternalizer<TStreamRef>. |
RWriteStream | ( | MStreamBuf * | aSink | ) | [inline] |
Constructs a write stream over the supplied stream buffer. The stream has no associated Store map.
MStreamBuf * aSink | The stream buffer used to write to the write stream. |
void | Attach | ( | MStreamBuf * | aSink | ) | [protected, inline] |
Sets the stream buffer sink for this write stream. The existing sink, if there is one, will be discarded.
This is useful for derived classes, enabling them to set the sink following construction.
Note:
Release() is not called for discarded sinks.
MStreamBuf * aSink | The stream buffer sink for this write stream. |
void | Detach | ( | ) | [protected, inline] |
Sets the stream buffer sink for this write stream to NULL. The existing sink, if there is one, will be discarded.
Note:
Release() is not called for discarded sinks.
void | Pop | ( | ) | [inline] |
Removes the cleanup item for this write stream object from the cleanup stack.
MStreamBuf * | Sink | ( | ) | [inline] |
Gets the underlying stream buffer for the write stream. This provides access to the stream-buffer implementation used by the write stream.
The underlying stream buffer for the write stream.
IMPORT_C void | WriteL | ( | RReadStream & | aStream, |
TInt | aLength | |||
) |
RReadStream & aStream | |
TInt aLength |