J
jobs239
I need to pass a nested struct as argument to JNI function e.g.
struct A {
int a
struct B
}
struct B {
long b
struct B * next
}
What is a good way to do this. I think I can use GetFieldID and
SetField for each field but since the structs are big its very
cumbersome.
Should I just pass a string of values and compose this data structure
on the java side. What other options do I have?
struct A {
int a
struct B
}
struct B {
long b
struct B * next
}
What is a good way to do this. I think I can use GetFieldID and
SetField for each field but since the structs are big its very
cumbersome.
Should I just pass a string of values and compose this data structure
on the java side. What other options do I have?