Skip to content

Instantly share code, notes, and snippets.

@erraggy
Created December 3, 2013 01:10
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 erraggy/7762169 to your computer and use it in GitHub Desktop.
Save erraggy/7762169 to your computer and use it in GitHub Desktop.
implicit object StringConverter extends ByteConverter[String] {
override def toBytes(t: String) = Bytes.toBytes(t)
override def fromBytes(bytes: Array[Byte]) = Bytes.toString(bytes)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment