class RMemWriteStream : public RWriteStream |
Supports the writing of a stream to a pointer of any type.
Public Member Functions | |
---|---|
RMemWriteStream() | |
RMemWriteStream(const MExternalizer< TStreamRef > &) | |
RMemWriteStream(TAny *, TInt) | |
IMPORT_C void | Open(TAny *, TInt) |
Private Attributes | |
---|---|
TMemBuf | iSink |
RMemWriteStream | ( | ) | [inline] |
Constructs an empty write stream object.
Call Open() to prepare a stream for writing.
RMemWriteStream | ( | const MExternalizer< TStreamRef > & | anExter | ) | [inline] |
Constructs a write stream with an externalizer. For example, CStoreMap implements MExternalizer<TStreamRef>.
const MExternalizer< TStreamRef > & anExter | Specifies an externalizer. |
IMPORT_C | RMemWriteStream | ( | TAny * | aPtr, |
TInt | aMaxLength | |||
) |
Constructs the RMemWriteStream object and prepares a stream to be hosted in the specified memory location (described by the TAny aPtr argument) for writing using the Open() function.
IMPORT_C void | Open | ( | TAny * | aPtr, |
TInt | aMaxLength | |||
) |
Prepares a stream for writing.
When streaming takes place any existing data in the memory location will be replaced. Note that the length of memory must be big enough to accommodate the expected streamed data otherwise the subsequent streaming operation will leave with KErrOverFlow.
To close the stream and free its resources call Close()
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.