Unrolled while loop in readVarLong.