<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://blogs.forum.nokia.com/styles/rss.css" type="text/css"?>
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/">
 <channel>
  <title>Open Source Bluetooth PAN's Forum Nokia Blog - Symbian, Descriptors and Unicode</title>
  <description>Forum Nokia Blogs</description>
  <link>http://blogs.forum.nokia.com/summary.php</link>
 </channel>
    <item>
     
   <title>Response</title>
   <description>&lt;p&gt;Thanks for discussion guys!&lt;br /&gt;
With last suggestion I could repeat the trick in this manner:&lt;/p&gt;
&lt;p&gt;const TUint8* tempBuf_1 = &amp;amp;buf8[0];&lt;br /&gt;
TUint8*       tempBuf_2 = const_cast(tempBuf_1  );&lt;br /&gt;
TUint16*      tempBuf_3 = (TUint16*)(tempBuf_2);&lt;br /&gt;
TPtrC ptr16(tempBuf_3, destLength);&lt;br /&gt;
buf16.Copy(ptr16);&lt;/p&gt;
</description>
   <link>http://blogs.forum.nokia.com/blog/open-source-bluetooth-pans-forum-nokia-blog/2009/01/20/symbian-descriptors-and-unicode#comment24697</link>
  </item>
    <item>
     
   <title>TPtr/C16</title>
   <description>&lt;p&gt;Based on how 8-bit descriptors look like in the memory I would trust that [0] is word-aligned and try&lt;br /&gt;
TPtrC ptr16(static_cast(&amp;amp;buf8[0]),buf8.Size()/2);&lt;/p&gt;
</description>
   <link>http://blogs.forum.nokia.com/blog/open-source-bluetooth-pans-forum-nokia-blog/2009/01/20/symbian-descriptors-and-unicode#comment24694</link>
  </item>
    <item>
     
   <title>TPckg* classes</title>
   <description>&lt;p&gt;Note that there are the TPckg family of templated wrapper classes (TPckg, TPckgC, TPckgBuf) for packaging any fixed-size data (e.g. T class instances) in a 8-bit descriptor and extracting such packages.&lt;/p&gt;
&lt;p&gt;Lauri&lt;/p&gt;
</description>
   <link>http://blogs.forum.nokia.com/blog/open-source-bluetooth-pans-forum-nokia-blog/2009/01/20/symbian-descriptors-and-unicode#comment24692</link>
  </item>
  </rdf:RDF>