Skip to content

Instantly share code, notes, and snippets.

@platy
Created June 26, 2015 10:24
Show Gist options
  • Save platy/2325a7c9172891d1e4b9 to your computer and use it in GitHub Desktop.
Save platy/2325a7c9172891d1e4b9 to your computer and use it in GitHub Desktop.
String data converters
def hexStringToString(hexString: String) =
new String(hexString.grouped(2).map(byteAsString => Integer.parseInt(byteAsString, 16).toByte).toArray)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment