我有一个看起来像这样的结构:
typedef struct{
int classes;
char **names;
} metadata;
当前等效的JNR结构如下:
public static class Metadata extends Struct{
public Metadata(jnr.ffi.Runtime rt) {
super(rt);
}
public final Struct.Unsigned32 classes = new Struct.Unsigned32();
public final Struct.Pointer names = new Struct.Pointer();
}
是否可以将字段names
转换为String[]
?