When using sqlite3_column_text16 and sqlite3_column_bytes16 in https://www.sqlite.org/c3ref/column_blob.html , I can only get a pointer to the UTF-16 text buffer, as well as the number of bytes in the buffer.
Now I need to convert such a buffer into a CString object. How to do so? It seems that CString only has the following constructor:
CString( LPCTSTR lpch, int nLength ); // requires LPCTSTR and number of chars, not bytes
CString( LPCWSTR lpsz ); // requires null-terminiated Unicode buffer
Both seems not appropriate for my case.