@Override
	public long skip(long n) throws IOException {
		if (n < 0) {
			return 0;
		}
		n = Math.min(available(), n);
		offset += n;
		return n;
	}
An input stream backed by a database chained buffer
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/DBBufferInputStream.java