Skip to content

Instantly share code, notes, and snippets.

@systra
Created March 23, 2015 11:09
Show Gist options
  • Save systra/0a39c709fc506bcaec1e to your computer and use it in GitHub Desktop.
Save systra/0a39c709fc506bcaec1e to your computer and use it in GitHub Desktop.
Reversing binary
reverse_bin(Bin) ->
S = size(Bin)*8,
<<X:S/integer-little>> = Bin,
<<X:S/integer-big>>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment