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

java.nio.ByteBuffer putInt(), etc., should use byte order specified #5

Open
slyubomirsky opened this issue Aug 8, 2018 · 0 comments

Comments

@slyubomirsky
Copy link
Contributor

The present specification for putInt() uses Java's default byte order (big endian) for turning an int into bytes but the Javadocs for java.nio.ByteBuffer state that while the byte order is big endian by default, it can be set to little endian using order(ByteOrder).

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