比如有以下结构体,如何通过JNI实现转换
typedef struct aaa
{
int nType;
union
{
struct A a;
struct B b;
struct C c;
struct D d;
}
}aaa;
当nType为1,则对应a,2对应b,3对应c,4对应d;
这个JNI转换时该怎么转
...全文
58回复打赏收藏
JNI如何转换包含联合的结构体
比如有以下结构体,如何通过JNI实现转换 typedef struct aaa { int nType; union { struct A a; struct B b; struct C c; struct D d; } }aaa; 当nType为1,则对应a,2对应b,3对应c,4对应d; 这个JNI转换时该怎么转