length

fun length(buf: ByteBuf, index: Int): Int

Returns VarInt byte length at index, or -1 if incomplete.