We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I have a C struct like:
typedef struct type_MyStruct { int iMeasure; int position[3]; } MyStruct;
When I generate the java class I get something like:
public class MyStruct extends StructObject { ... @Field(0) public int iMeasure() { ... } @Field(0) public MyStruct iMeasure(int iMeasure) { ... } @Array({3}) @Field(1) public Pointer<Integer> position() { ... } ... }
As you can see I don't have a method set for position like:
@Field(1) public MyStruct position(Pointer<Integer> position) { ... }
So, how can I set values for this array of 3 positions? For example:
MyStruct myStruct = new MyStruct(); myStruct.iMeasure(10); ??? myStruct.position()
Thanks
The text was updated successfully, but these errors were encountered:
Hi @ivangfr,
Thanks for using BridJ! You can set items of position with myStruct.position().set(index, value).
myStruct.position().set(index, value)
Cheers
Sorry, something went wrong.
No branches or pull requests
Hi,
I have a C struct like:
When I generate the java class I get something like:
As you can see I don't have a method set for position like:
So, how can I set values for this array of 3 positions? For example:
Thanks
The text was updated successfully, but these errors were encountered: