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

Added endianness member methods to Platform.java #263

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

basshelal
Copy link
Contributor

Added endianness member methods (non static) to Platform.java to determine if either isBigEndian() or isLittleEndian() using the system property sun.cpu.endian.

Fixed missing import from #259

…rmine if either `isBigEndian()` or `isLittleEndian()` using the system property `sun.cpu.endian`.

Fixed missing import from jnr#259
@headius
Copy link
Member

headius commented Aug 18, 2021

Nice! I wonder if you saw #260 I filed a couple days ago? There are several other platform-detection tricks and APIs in jnr-posix and jnr-enxio. I believe we should pull these all into jnr-ffi since platform detection is nearly universal across all consumers.

Also thanks for fixing the missing import. Not sure how I missed the failing build but perhaps there was a merge issue.

@headius headius added this to the 2.2.5 milestone Aug 18, 2021
@headius headius merged commit c11344a into jnr:master Aug 18, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants