HexDecoder

object HexDecoder extends Decoder[String, Array[Byte]]

Hex Decoder

trait Decoder[String, Array[Byte]]
class Object
trait Matchable
class Any

Value members

Concrete methods

def decode(data: String): Array[Byte]

Converts an array of character bytes representing hexadecimal values into an array of bytes of those same values. The returned array will be half the length of the passed array, as it takes two characters to represent any given byte. An exception is thrown if the passed char array has an odd number of elements.

Converts an array of character bytes representing hexadecimal values into an array of bytes of those same values. The returned array will be half the length of the passed array, as it takes two characters to represent any given byte. An exception is thrown if the passed char array has an odd number of elements.