Hi all,
I'm wondering if there's an efficient way to share memory between C and JAVA without having to do data conversion. For example, I use JNI to "translate" j objects (e.g, jint) to C variables. This is time consuming, especially when we're dealing with large sets of data, as in my case.
Is there a way to have C access those j objects directly without any "translation"?
How about the other way around? In other words, can a Java program access C structures directly in memory?
If so, how? Do you have sample code?
Thank you!
RH
I'm wondering if there's an efficient way to share memory between C and JAVA without having to do data conversion. For example, I use JNI to "translate" j objects (e.g, jint) to C variables. This is time consuming, especially when we're dealing with large sets of data, as in my case.
Is there a way to have C access those j objects directly without any "translation"?
How about the other way around? In other words, can a Java program access C structures directly in memory?
If so, how? Do you have sample code?
Thank you!
RH