Reference Passing
How can i pass the C pointer reference to the java reference ? And what all are the issues?
Ans : The thing that i have idea is that its possible but there is no idea about how to reference the C struct member using the Java reference.
The main idea here is to increase the performance.
You can't, really. A C strut or object is more different from a java object than you might think. And Java doesn't have any facility to handle memory addresses (which makes Java code much better behaved).
You could pass the contents of a C strut as a byte array, and take it appart with ByteBuffer.
> How can i pass the C pointer reference to the java
> reference ?
* I have no idea what a "C pointer reference" is.
* You can't pass anything to a Java reference. You can pass parameters to a Java method, but you can't pass things to a Java reference.
* In short, the answer to your question as phrased above is, "You can't."
> Ans : The thing that i have idea is that its possible
> but there is no idea about how to reference the C
> struct member using the Java reference.
> The main idea here is to increase the performance.
Sorry, but you're not really making any sense.
jverda at 2007-7-12 10:33:02 >
