scalaz.ArrayByte.scala Maven / Gradle / Ivy
The newest version!
package scalaz
sealed trait ArrayByte extends PimpedType[Array[Byte]] {
def decode(implicit c: CharSet): String = new String(value, c.value)
}
trait ArrayBytes {
implicit def ArrayByteTo(bs: Array[Byte]): ArrayByte = new ArrayByte {
val value = bs
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy