[Mono-dev] Communicating native C structs with managed code

R Zaghi rzaghi at mosaic3dx.com
Fri Jan 5 09:59:35 UTC 2018


Hi

What would be the most performance efficient method to pass a native C
struct of primitive data types (memory aligned or compact) to the managed
code in Mono/C# and allow modification of its member variables in the
managed code?

Do we have anything specific in Mono that helps eliminate manual
marshalling on every call? or could we? :)

Say, in the following scenarios:

struct S1 {
double x,
double y,
double z
};

Or

struct S2 {
int arr[256]
};

Or

struct S3 {
double x,
int arr[256]
};



Ramin



-- 



Ramin Zaghi

*Mosaic3DX™ | User Interface Technology*
St John's Innovation Centre,
Cowley Road,
Cambridge,
CB4 0WS, UK
*E*: rzaghi at mosaic3dx.com
*T*: +44 1223 421 311
http://linkedin.com/in/raminzaghi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20180105/6337f0c3/attachment.html>


More information about the Mono-devel-list mailing list