Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32mem.h
Link against: estor.lib

Class RMemWriteStream

RMemWriteStream

Support

Supported from 5.0

Description

Supports the writing of a stream hosted in plain memory.

Derivation

RMemWriteStreamSupports the writing of a stream hosted in plain memory
RWriteStreamThe write stream interface

Defined in RMemWriteStream:
Open(), RMemWriteStream()

Inherited from RWriteStream:
Attach(), Close(), CommitL(), Detach(), Pop(), PushL(), Release(), Sink(), WriteInt16L(), WriteInt32L(), WriteInt8L(), WriteL(), WriteReal32L(), WriteReal64L(), WriteUint16L(), WriteUint32L(), WriteUint8L()


Construction


RMemWriteStream()

RMemWriteStream();

Description

Constructs an empty write stream object.

Call Open() to prepare a stream for writing.


RMemWriteStream()

RMemWriteStream(TAny* aPtr,TInt aMaxLength);

Description

Constructs the object and prepares a stream, to be hosted in the specified plain memory location, for writing using the Open() function.

Parameters

TAny* aPtr

A pointer to the memory location.

TInt aMaxLength

The maximum length of memory available.

[Top]


Member functions


Open()

void Open(TAny* aPtr,TInt aMaxLength);

Description

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.

Parameters

TAny* aPtr

A pointer to the memory location.

TInt aMaxLength

The maximum length of memory available.

See also: