Hi,
I have to copy some data to an unmanaged array pointed by an IntPtr. The
thing is Marshal.Copy only offers 4 parameters(not the actual parameters
name but what I understood of them) : Source, srcOffset, Destination(the
IntPtr), Length.
I would need and offset in the destination, something like : Source,
srcOffset, Destination(the IntPtr), dstOffset, Length.
Is there a way I can handle that simply? because I can't just call
Marshal.Copy(Source, srcOffset, Destination+dstOffset, Length). It does not
work.
Does somebody know how to achieve that?
Thanks
ThunderMusic
Herfried K. Wagner [MVP] - 05 Jan 2006 17:59 GMT
"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> schrieb:
> I have to copy some data to an unmanaged array pointed by an IntPtr. The
> thing is Marshal.Copy only offers 4 parameters(not the actual parameters
[quoted text clipped - 7 lines]
> Marshal.Copy(Source, srcOffset, Destination+dstOffset, Length). It does
> not work.
'...(..., New IntPtr(Destination + Offset), ...)'.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>