Last active
July 28, 2017 14:30
-
-
Save ahamez/dc3911758d3f169f38e7d416d2ffbcca to your computer and use it in GitHub Desktop.
Read big endian in Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Convert 4 unsigned big endian bytes to int | |
| int x = java.nio.ByteBuffer.wrap(bytes).getInt(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment