1
我有一個函數調用:JNA:指針的指針到一個struct
long foo(mystruct **list)
其中mystruct
定義是
typedef struct {
otherstruct *bar[64];
} mystruct;
,我試圖讓在( JNA)Structure []對應的吧。我當前的函數定義是int foo(PointerByReference list);
,因爲這是指向指針的指針,但我無法弄清楚如何獲取Structure []。
在C中,代碼的使用如下:
mystruct *list;
foo(&list);
for (i=0; i<64; i++)
doStuff(list->bar[i]);