Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: s32mem.h
Link against: estor.lib

Class TDesBuf

TDesBuf

Support

Supported from 5.0

Description

A stream buffer that uses a descriptor for its implementation.

A stream of this type is used by RDesWriteStream and RDesReadStream objects. It also has intermediate buffering capabilities.

This is a seekable stream buffer.

When used in write mode, the length of the descriptor is only updated when the stream buffer's SynchL() function is called, i.e. as a result of a call to RWriteStream::CommitL().

Derivation

MStreamBufA stream buffer that provides a generic I/O interface for streamed data
TDesBufA stream buffer that uses a descriptor for its implementation
TStreamBufAdds buffering capabilities to a stream buffer

Defined in TDesBuf:
Set(), TDesBuf()

Inherited from MStreamBuf:
SeekL(), Close(), DoRelease(), DoSeekL(), DoSynchL(), ERead, EWrite, PushL(), Read(), ReadL(), Release(), SeekL(), SizeL(), Synch(), SynchL(), TMark, TRead, TWrite, TellL(), Write(), WriteL()

Inherited from TStreamBuf:
Avail(), DoReadL(), DoWriteL(), End(), OverflowL(), Ptr(), SetBuf(), SetEnd(), SetPtr(), TArea, UnderflowL()

See also:


Construction


TDesBuf()

TDesBuf();

Description

Constructs an empty object.

Call Set() before using the object.

[Top]


Member functions


Set()

void Set(TDes8& aDes,TInt aMode=ERead|EWrite);

Description

Sets up the stream to use the specified descriptor.

Parameters

TDes8& aDes

The descriptor that hosts the stream and that also acts as the intermediate buffer.

TInt aMode

The mode in which the buffer is to be used. It can be used in either or both read and write modes, represented by ERead and EWrite.

See also: