private byte[] createLittleEndianByteArray(long value, int numBytes)
			throws CancelledException {


		byte byteArray[] = new byte[numBytes];

		for (int i = 0; i < numBytes; i++) {
			monitor.checkCancelled();
			byteArray[i] = (byte) (value >> (BITS_PER_BYTE * i) & BYTE_MASK);
		}

		return byteArray;
	}
Method to create a little endian ordered byte array out of the given long value
@param value the given value
@param numBytes the number of bytes to copy into the array
@return the little endian byte array for the given value
@throws CancelledException if cancelled
Ghidra/Features/Base/ghidra_scripts/SearchForImageBaseOffsetsScript.java