Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: s32mem.h
Link against: estor.lib

Class RDesWriteStream

RDesWriteStream

Support

Supported from 5.0

Description

Supports the writing of a stream to a stream buffer hosted by a descriptor.

Derivation

RDesWriteStreamSupports the writing of a stream to a stream buffer hosted by a descriptor
RWriteStreamThe write stream interface

Defined in RDesWriteStream:
Open(), RDesWriteStream()

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

See also:


Construction


RDesWriteStream()

RDesWriteStream();

Description

Constructs an empty write stream object.

Call Open() to prepare a stream for writing.


RDesWriteStream()

RDesWriteStream(TDes8& aDes);

Description

Constructs the object and prepares a stream, to be hosted by the specified descriptor, for writing using the Open() function.

Parameters

TDes8& aDes

The descriptor hosting the stream.

See also:

[Top]


Member functions


Open()

void Open(TDes8& aDes);

Description

Prepares a stream for writing.

When streaming takes place, any existing data in the descriptor will be replaced. Note that the maximum length of the descriptor must be big enough to accommodate the expected streamed data, otherwise the subsequent streaming operation will leave with KErrOverFlow.

A subsequent call to CommitL() sets the length of the descriptor.

Parameters

TDes8& aDes

The descriptor hosting the stream.

See also: