You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Java looks like:
message info = new message();
info.text().setCString(“TEST”);
Pointer Pinfo = Pointer.pointerTo(info);
This structure is then passed to a function via the pointer type.
The container array seems to be the problem as the rest of the code was working fine before it’s addition. Is there something I need to do on the java side to initialize the array?
Thanks for any insight you can give.
The text was updated successfully, but these errors were encountered:
I've deployed a fix for BridJ's struct layout code that should solve your particular case (if not, please let me know :-)), available in the latest 0.6.2-SNAPSHOT (see https://code.google.com/p/bridj/wiki/Download ).
I am having some difficulty using an array of structures.
The C structure looks like this:
typedef struct {
char part1[100];
char part2[100];
char part3[100];
} stuff;
typedef struct {
char part1[100];
char part2[100];
char part3[100];
} something;
typedef struct {
char type[100];
char date[100];
char time[100];
stuff stuff;
something something;
} container;
typedef struct {
char text[512];
container container[1];
} message;
The Java looks like:
message info = new message();
info.text().setCString(“TEST”);
Pointer Pinfo = Pointer.pointerTo(info);
This structure is then passed to a function via the pointer type.
The container array seems to be the problem as the rest of the code was working fine before it’s addition. Is there something I need to do on the java side to initialize the array?
Thanks for any insight you can give.
The text was updated successfully, but these errors were encountered: