VarLong

object VarLong
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(raw: Long): VarLong

Concrete fields

final lazy
val Integral_VarLong: Integral[VarLong]

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 VarLong equals Long, 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 VarLong equals Long, hence writing

 given Integral[VarLong] = summon[Integral[Long]]

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

 val integralLong: Integral[Long] = summon[Integral[Long]]
 given Integral[VarInt] = integralLong

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