@Override
	public long skip(long n) throws IOException {
		if (n <= 0) {
			return 0;
		}
		long newPosition = Math.min(provider.length(), currentPosition + n);
		long skipped = newPosition - currentPosition;
		currentPosition = newPosition;
		return skipped;
	}
Creates an InputStream that uses a ByteProvider as its source of bytes.
 
@param provider the {@link ByteProvider} to wrap
@param startPosition starting position in the provider
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/ByteProviderInputStream.java