Skip to content

Instantly share code, notes, and snippets.

@xkr47
Created December 6, 2015 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xkr47/c558cfd1763c1347a96e to your computer and use it in GitHub Desktop.
Save xkr47/c558cfd1763c1347a96e to your computer and use it in GitHub Desktop.
Simple singleline hexdumper
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