If we want send it out to Java code, example as below.
jintArray Java_com_example_play_getIntArray( JNIEnv* env, jobject thiz )
{
jintArray javaArray; // output type is jintArray
int size = 256;
javaArray = (*env)->NewIntArray(env, size);
(*env)->SetIntArrayRegion(env, javaArray, 0, size, (jint *)p_Array);
return javaArray;
}
沒有留言:
張貼留言