Symbian Developer Library

SYMBIAN OS V6.1 EXAMPLE CODE

[Index] [Previous] [Next]



Descriptors example code


BinaryData—handling general binary data with descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\BinaryData


Description

The example shows how descriptors can handle general binary data by explicitly using the 8 bit descriptor class variants TBufC8<TInt>, TBuf8<TInt>, TPtr8 etc.

Contrast this with examples where descriptors contain text. These examples almost always use the non-explicit forms TBufC<TInt>, TBuf<TInt>, TPtr etc; these are typedef'd to the 16 bit variant.


Usage

Run the example either under WINS or on the ARMI platform.


Classes used

[Top]


Buffer—basic idea of buffer descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\Buffer


Description

This example shows the basic idea of buffer descriptors and how they are used.


Usage

Run the example either under WINS or on the ARMI platform


Classes used

[Top]


InFunct—using descriptors in function interfaces

Found in: epoc32ex\Base\BufsAndStrings\Desc\InFunct


Description

This example shows how descriptors can be used in function interfaces. Specifically, it shows the use of:

as function arguments.


Usage

Run the example either under WINS or on the ARMI platform


Classes used

[Top]


HeapBuffer—heap buffer descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\HeapBuffer


Description

The example shows use of the HBufC heap buffer descriptor and:


Usage

Run the example either under WINS or on the ARMI platform


Classes used

[Top]


Modifier—modifiable descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\Modifier


Description

The example shows the use of descriptor functions which can modify the descriptor. These are the functions defined and implemented by the TDes class: for example SetLength(), Copy() and Insert().


Usage

Run the example either under WINS or on the ARMI platform


Classes used

[Top]


NonModifier—non-modifiable descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\NonModifier


Description

The example shows the use of descriptor functions which do not modify the descriptor. These are the functions defined and implemented by the TDesC class; for example Length(), Size() and Compare().


Usage

Run the example either under WINS or on the ARMI platform


Classes used

[Top]


Pointer—basic idea of pointer descriptors

Found in: epoc32ex\Base\BufsAndStrings\Desc\Pointer


Description

The example shows the basic idea of pointer descriptors and how they are used.


Usage

Run the example either under WINS or on the ARMI platform


Classes used