Groups | Blog | Home
all groups > dotnet interop > october 2003 >

dotnet interop : Marshaling Unsigned Types



Barry Simon
10/29/2003 11:56:33 AM
Is there a way to marshal unsigned arrays between managed and unmanged code?
Marshal.Copy does not seem to support this and I am unable to find anything
else that does.

- Thanks in advance

Mattias Sjögren
11/4/2003 1:04:28 AM
Barry,

[quoted text, click to view]

You can still call kernel32!RtlMoveMemory to do pretty much anything
Marshal.Copy does. If you're coding in C# you could also consider
using unsafe code and pinning the array to avoid the copy altogether,
if that's possible with the API you're calling.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
AddThis Social Bookmark Button