<div dir="ltr">Hi Neale,<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
                    if (!BitConverter.IsLittleEndian) {<br>
                        byte* bytePtr = (byte*) charPtr;<br>
                        var dest = new byte[byteLen];<br>
                        for (int i = 0; i < byteLen; i += 2) {<br>
                                dest[i] = *(bytePtr+i+1);<br>
                                dest[i+1] = *(bytePtr+i);<br>
                        }<br>
                        fixed(byte *pDest = dest) {<br>
                            s = new String((char *)pDest, 0, byteLen/2);<br>
                        }<br>
                    } else {<br>
                        s = new String(charPtr, 0, byteLen/2);<br>
                    }<br>
<br></blockquote><div><br></div><div>Patch applied.</div><div><br></div><div>Thanks</div><div>Marek</div></div></div></div>