Skip to content

Instantly share code, notes, and snippets.

@rschildmeijer
Created September 19, 2012 13:22
Show Gist options
  • Save rschildmeijer/3749658 to your computer and use it in GitHub Desktop.
Save rschildmeijer/3749658 to your computer and use it in GitHub Desktop.
int -> byte[]
ByteBuffer.allocate(4).putInt(integer).array()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment