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*: [email protected]
*T*: +44 1223 421 311
http://linkedin.com/in/raminzaghi
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.dot.net/mailman/listinfo/mono-devel-list

Reply via email to