public static void encode(Appendable out,int value) throws IOException {
  value=toVLQSigned(value);
  do {
    int digit=value & VLQ_BASE_MASK;
    value>>>=VLQ_BASE_SHIFT;
    if (value > 0) {
      digit|=VLQ_CONTINUATION_BIT;
    }
    out.append(Base64.toBase64(digit));
  }
 while (value > 0);
}

public static void encode ( Appendable out , int value ) throws IOException { value = toVLQSigned ( value ) ; do { int digit = value & VLQ_BASE_MASK ; value >>>= VLQ_BASE_SHIFT ; if ( value > 0 ) { digit |= VLQ_CONTINUATION_BIT ; } out . append ( Base64 . toBase64 ( digit ) ) ; } while ( value > 0 ) ; }
writes a vlq encoded value to the provide appendable .
