[Mono-dev] C->C#, how to pass a byte parametr
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:
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list