M
marydeepthy
Hi,
I have a JNI call, which should return an int array.
have created an intarray of size 3
jintArray cod = (*env)->NewIntArray(env,3);\
now i want to set the elements of the array. i have the function
(*env)->SetIntArrayRegion(env, cod, 0, 3, (jint *)nativeArray);
my problem is, to use this function i have to make a native array.
but all i have is the members of this native array, which are pointers
to unsigned integers.can i assign these members directly, without
creating the nativeArray? Please do help me.
Regards
Mary Deepthy
I have a JNI call, which should return an int array.
have created an intarray of size 3
jintArray cod = (*env)->NewIntArray(env,3);\
now i want to set the elements of the array. i have the function
(*env)->SetIntArrayRegion(env, cod, 0, 3, (jint *)nativeArray);
my problem is, to use this function i have to make a native array.
but all i have is the members of this native array, which are pointers
to unsigned integers.can i assign these members directly, without
creating the nativeArray? Please do help me.
Regards
Mary Deepthy