[Mono-dev] UnmanagedType.LPWStr and Big-Endian Unicode
Dmitry Key
dmitryskey at hotmail.com
Sat Aug 12 05:14:49 EDT 2006
Hi
One has the following function declaration:
[DllImport("libSQLDBC_C")]
public unsafe extern static SQLDBC_Retcode
SQLDBC_PreparedStatement_prepareNTS(
IntPtr stmt,
[MarshalAs(UnmanagedType.LPWStr)]string query,
SQLDBC_StringEncodingType encoding);
It is obvious that for the Little-Endian hardware the string "query" will be
translated to the Little-Endian null-terminated Unicode string. But what
happens for the Big-Endian architecture? I could not find answer for this
question in the Mono documention.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Mono-devel-list
mailing list