@Override
	public boolean isValidIndex(long index) {
		// this method treats the index as an unsigned int64, and will give accurate results
		// for the entire range of the underlying AddressSpace
		try {
			if (isEmtpy || Long.compareUnsigned(index, maxOffset) > 0) {
				return false;
			}
			return memory.contains(getAddress(index));
		}
		catch (IOException | AddressOutOfBoundsException e) {
			return false;
		}
	}
Returns the address range of the bytes of this provider.

@return address range of first byte to last byte of this provider
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/MemoryByteProvider.java