[Mono-dev] C->C#, how to pass a byte[] parametr
Chris Nuernberger
cnuernberger at extendthereach.com
Mon Mar 27 11:02:29 EST 2006
Marshal the char* to an IntPtr in the function return
Then use Marshal.CopyTo to copy data from the IntPtr to a byte array.
SRC in Action:
www.DemographicsNow.com <http://www.demographicsnow.com/>
Join SRC at Extend 2006 - Disruptive Technology
June 5-7, 2006 at the Hyatt Regency, Huntington Beach, CA
For more details, click here: www.extendthereach.com/extend06/
________________________________
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of
vavra at software602.cz
Sent: Monday, March 27, 2006 1:10 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] C->C#, how to pass a byte[] parametr
Hello,
I'd like to pass from C a buffer of binary data to C# code.
Using directly char* doesn't seem to me as a right way ...
Thanks for response.
JV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060327/2ef8ea4a/attachment.html
More information about the Mono-devel-list
mailing list