@Override
	public byte[] getBytes(int index, int size) {
		if (index < 0 || index + size > extendedLength) {
			throw new IndexOutOfBoundsException();
		}
		int length = main.getLength();
		if (index + size < length) {
			return main.getBytes(index, size);
		}
		if (index >= length) {
			return extended.getBytes(index - length, size);
		}
		// otherwise it spans
		byte[] results = new byte[size];
		for (int i = 0; i < size; i++) {
			results[i] = getByte(index + i);
		}
		return results;
	}
Returns the overall length of sequence of available bytes. This will be the length of
the primary sequence as returned by {@link #getLength()} plus the length of the available
extended bytes, if any.
@return the
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/bytesequence/ExtendedByteSequence.java