docs: public static int putVarInt(int v, byte[] sink, int offset) {
      do {
        // Encode next 7 bits + terminator bit
        int bits = v & 0x7F;
        v >>>= 7;
        byte b = (byte) (bits + ((v != 0) ? 0x80 : 0));
        sink[offset++] = b;
      } while (v != 0);
      return offset;
    }