VarInt

object VarInt
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(raw: Int): VarInt

Concrete fields

final lazy
val Integral_VarInt: Integral[VarInt]

Runtime representation of VarInt and Int are the same, so the same instance of Integral can be used. Note that summoning and declaration of given must be separated: within this scope VarInt equals Int, hence writing

Runtime representation of VarInt and Int are the same, so the same instance of Integral can be used. Note that summoning and declaration of given must be separated: within this scope VarInt equals Int, hence writing

 given Integral[VarInt] = summon[Integral[Int]]

will result in a infinite-recursion by a forward-reference. Note that

 val integralInt: Integral[Int] = summon[Integral[Int]]
 given Integral[VarInt] = integralInt

also results in a forward-reference and exposes null as Integral[VarInt].