Created
December 6, 2015 07:42
-
-
Save xkr47/c558cfd1763c1347a96e to your computer and use it in GitHub Desktop.
Simple singleline hexdumper
This file contains 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
void hexdump(String s) { | |
value hexes = { for (ch in s) let (x = "_____" + formatInteger(ch.integer, 16)) x[x.size - 5 ...] }; | |
log.debug(hexes.fold("")((x,y) => x + y + " ")+ s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment