[mono-android] Fastest way to transfer binary data between java/mono
Igor Russkih
irusskih at gmail.com
Tue Oct 23 08:32:50 UTC 2012
Hello,
Assume I have my java class, and my cs class. What I want is to transfer
binary data between these two with max performance.
Main direction is cs -> java for now.
What is the best way?
1) JNI CopyArray - how is that implemented internally? SetIntArrayRegion?
2) DirectByteBuffer seems to be a better alternative, but on mono side, the
only way is Marshal.ReadInt32/WriteInt32? Is that fast?
3) anything else?
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20121023/97c11d9b/attachment-0001.html>
More information about the Monodroid
mailing list