E
Ejeep
Hi,all
I want to implement the function about this: c and java between JNI
can share the same data area. For example, when change the value of
the array in java, i can get the same value in c.
I use the function:Xxx* GetXxxArrayElements(JNIEnv env, jarray array,
jboolean isCopy)
But i find that the "isCopy" is JNI_TRUE which means that i get the
pointer which point to a copy,so i can't get the change
in Java later.
How can I do?Can i set "isCopy" with JNI_FALSE??
Thank u.
I want to implement the function about this: c and java between JNI
can share the same data area. For example, when change the value of
the array in java, i can get the same value in c.
I use the function:Xxx* GetXxxArrayElements(JNIEnv env, jarray array,
jboolean isCopy)
But i find that the "isCopy" is JNI_TRUE which means that i get the
pointer which point to a copy,so i can't get the change
in Java later.
How can I do?Can i set "isCopy" with JNI_FALSE??
Thank u.