pass data between Java and C -
i have c structure.
struct data{ double value1[50]; double value2[50]; int count; };
i want map data java c structure.how can using jni? java code not programmed me. java programmer wants know in form should send me data? should expect more details
i testing code filling structure instance csv file containing 2 columns.
i want return 3 double values c code java application.
provide following declaration java programmer:
public native double[] dodata(double [] value1, double [] value2, int count);
in c code able fill structure passed parameters. jni header this:
jniexport jdoublearray jnicall java_package_classname_dodata(jnienv * , jobject, jdoublearray , jdoublearray, jint);
Comments
Post a Comment