@Override
	public int read() throws IOException {
		if (position >= limit) {
			return -1;
		}
		position++;
		return wrappedInputStream.read();
	}
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