[Mono-list] How to pass arrays from C to embedded Mono?
R. Tyler Ballance
tyler at bleepconsulting.com
Sat Nov 18 05:44:10 EST 2006
On Nov 18, 2006, at 4:25 AM, Hugh Perkins wrote:
> How can arrays be passed from C into embedded Mono?
As I had mentioned in IRC (remember, you decided to /ignore me)
The answer is in the documentation (http://www.mono-project.com/
Interop_with_Native_Libraries#Arrays_Embedded_Within_Structures)
There should be no difference conceptually between marshalling an
array into a standard managed Mono runtime versus marshalling into a
embedded Mono runtime. You still need to marshal the data properly
between the unmanaged and managed bits of the executable's runtime.
The steps for calling and passing the array from C into the embedded
runtime should be apparent after conforming the following bits of
documentation (http://www.mono-project.com/
Embedding_Mono#Invoking_Methods_in_the_CIL_universe) to your needs.
Cheers
R. Tyler Ballance: Custom Mac and Linux Development at bleep. consulting
contact: tyler at bleepconsulting.com | jabber: tyler at jabber.geekisp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061118/a3df2688/attachment-0001.html
More information about the Mono-list
mailing list