Convert descriptor TBuf16 to TBuf8 

When work on file operation we use TDes8 to save to file. but we got problem when we going to show it on label. label only support TDes16. How we solve this problem? Easy. we only need Copy method which haved by TBuf8 or TBuf16.

for example

TBuf8<100> iTry8;

TBuf16<100> iTry16;

iTry16.Copy(iTry8);

dierectly we move content of iTry8 to iTry16

Advertisements