code: static int readVInt(byte[] array, int offset) {
      byte b = array[offset];
      int value = b & 0x7F;
  
      for (int shift = 7; b < 0; shift += 7) {
        b = array[++offset];
        value |= (b & 0x7F) << shift;
      }
  
      return value;
    }
docs: Read a v-int.