pass data between Java and C

后端 未结 5 1406
南旧
南旧 2020-12-06 02:51

I have a C structure.

struct data{
    double value1[50];
    double value2[50];
    int count;
};

I want to map data from java to this C

5条回答
  •  星月不相逢
    2020-12-06 03:32

    You can probably get this to work with JNI, but personally, I'd rather have hot needles stuck in my eyes than work with JNI. I personally find Java Native Access (JNA) to be much easier to use.

提交回复
热议问题