private String hex(final long start, final long taintedEnd) {
    final long end = Math.min(taintedEnd, size);
    final long length = end - start;
    if (length < 10) {
      return inputHex(start, Math.toIntExact(length));
    } else {
      return String.format("%s...%s", inputHex(start, 4), inputHex(end - 4, 4));
    }
  }
Sets the input to the item provided (an offset to the beginning of an item) and check this is
valid.

@param item the value to which the current item is to be set.
ethereum/rlp/src/main/java/org/hyperledger/besu/ethereum/rlp/AbstractRLPInput.java