@Override
  public int skip(PositionedByteRange src) {
    if (wrapped.isSkippable()) {
      int ret = wrapped.skip(src);
      src.setPosition(src.getPosition() + term.length);
      return ret + term.length;
    } else {
      // find the terminator position
      final int start = src.getPosition();
      int skipped = terminatorPosition(src);
      if (-1 == skipped) {
        throw new IllegalArgumentException("Terminator sequence not found.");
      }
      skipped += term.length;
      src.setPosition(skipped);
      return skipped - start;
    }
  }
Skip {@code src}'s position forward over one encoded value.
@param src the buffer containing the encoded value.
@return number of bytes skipped.
@throws IllegalArgumentException when the terminator sequence is not found.
hbase-common/src/main/java/org/apache/hadoop/hbase/types/TerminatedWrapper.java