private static void fillArray(byte[] srcPattern, byte[] destArray) {
		for (int srcIndex = 0, destIndex =
			0; destIndex < destArray.length; srcIndex++, destIndex++) {
			if (srcIndex >= srcPattern.length) {
				srcIndex = 0;
			}
			destArray[destIndex] = srcPattern[srcIndex];
		}
	}
Fill an array with a repeated pattern of bytes.
<p>
The values in srcPattern are copied into destArray, repeating from the beginning
of srcPattern as many times as necessary to fill destArray.

@param srcPattern byte array with source pattern
@param destArray byte array destination
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/sparseimage/SparseImageDecompressor.java