Coverage Summary for Class: ByteImplicits (lzwpack.implicits)

Class Method, % Line, %
ByteImplicits 100% (2/ 2) 100% (2/ 2)
ByteImplicits$ByteOps 100% (3/ 3) 100% (3/ 3)
total 100% (5/ 5) 100% (5/ 5)


1 package lzwpack.implicits 2  3 import java.lang.{Byte => JavaByte} 4  5 /** 6  * Provides extension functions for the standard [[scala.Byte]] type. 7  */ 8 trait ByteImplicits { 9  implicit class ByteOps(b: Byte) { 10  /** 11  * Converts a signed JVM byte into its unsigned representation. 12  */ 13  def unsigned: Int = JavaByte.toUnsignedInt(b) 14  } 15 }