[Mono-list] Issue with Interop
andreas.faerber at web.de
Thu May 21 04:19:12 EDT 2009
Am 21.05.2009 um 08:29 schrieb weismat:
> A Marshal.Sizeof showed me that uint was translated to 4 instead of
> required 8 bytes
uint (System.UInt32) is always 4 bytes, even on 64-bit systems,
similar to uint32_t.
ulong (System.UInt64) is always 8 bytes, similar to uint64_t.
If you need an adapting size, try UIntPtr.
> - is there a simple flag to force a 64 translation or
> should I enforce the translation with precompiler statements?
> I confirmed that zlib is built with 64 bit size as well via a simple C
> View this message in context: http://www.nabble.com/Issue-with-Interop-tp23629942p23648529.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list