code: public static int decode(CharIterator in) {
      int result = 0;
      boolean continuation;
      int shift = 0;
      do {
        char c = in.next();
        int digit = Base64.fromBase64(c);
        continuation = (digit & VLQ_CONTINUATION_BIT) != 0;
        digit &= VLQ_BASE_MASK;
        result = result + (digit << shift);
        shift = shift + VLQ_BASE_SHIFT;
      } while (continuation);
  
      return fromVLQSigned(result);
    }
docs: Decodes the next VLQValue from the provided CharIterator.