diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-93AB9273-08A5-52CD-AFF7-8B92D72067BF.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-93AB9273-08A5-52CD-AFF7-8B92D72067BF.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,31 @@ + + + + + +Using +TDesUse TDes for interfaces which take narrow or wide (Unicode) text, +depending on the build variant. +
Usage in a +function interface

An interface which needs to access and modify +either narrow text or wide (Unicode) text, depending on the build variant, +uses a TDes as the argument type. All build independent +concrete descriptors are derived from TDes which means that +the interface can accept any build independent descriptor.

The following +code fragment shows the most common function prototype pattern.

void ClassX::foo(TDes& anArg);

The +use of TDes means that data can be accessed and modified +through the descriptor.

If the interface is to handle explicit 8 bit +or explicit 16 bit data, regardless of the build variant, then use TDes8 or TDes16 instead.

+
+ +Using class TDes8 + +Using Class +TDes16 +
\ No newline at end of file