Read from the correct input in getVarInt()