Skip to content
New issue

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

Unaligned pointer access in packed struct #106

Open
GiulianoFranchetto opened this issue Oct 4, 2018 · 0 comments
Open

Unaligned pointer access in packed struct #106

GiulianoFranchetto opened this issue Oct 4, 2018 · 0 comments

Comments

@GiulianoFranchetto
Copy link

Hi,

My C library is using some packed struct. When I use such structure, everything goes OK in the native library, but when it comes back to the Java world, the content of the struct is false.

I tried to force @struct(pack = 1), but I get Unaligned pointer access exceptions when trying to get some fields.

Is it impossible to use packed struct with BridJ?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant