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]);