[Mono-dev] UnmanagedType.LPWStr and Big-Endian Unicode

Dmitry Key dmitryskey at hotmail.com
Sat Aug 12 05:14:49 EDT 2006


One has the following function declaration:

public unsafe extern static SQLDBC_Retcode 
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! 

More information about the Mono-devel-list mailing list