@Override
	public long skip(long n) throws IOException {
		long bytesLeft = limit - position;
		long toSkip = Math.min(bytesLeft, n);

		long skipped = wrappedInputStream.skip(toSkip);
		position += skipped;
		return skipped;
	}
Creates a new instance.

@param wrappedInputStream {@link InputStream} to wrap, already positioned to the desired
starting position.
@param size number of bytes to allow this wrapper to read.
Ghidra/Framework/Utility/src/main/java/ghidra/util/BoundedInputStream.java