code: private int readVarInts() {
          int i = 0;
          int count = 0;
          short s;
          do {
              if (count > 4) {
                  throw new ParserException("read varints error.");
              }
              s = Buffers.readUByte(buffer);
              i |= (s & 0x7f) << (count * 7);
              count++;
          } while ((s & 0x80) != 0);
  
          return i;
      }
docs: read varints.
  
  @return
  @throws IOException