private byte[] createSearchArray(long value, int numBytes, boolean isBigEndian)
			throws CancelledException {

		if (isBigEndian) {
			return createBigEndianByteArray(value, numBytes);
		}
		return createLittleEndianByteArray(value, numBytes);
	}
Method to return an appropriate sized and 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 appropriate sized and endian-ordered byte array for the given value
@throws CancelledException if cancelled
Ghidra/Features/Base/ghidra_scripts/SearchForImageBaseOffsetsScript.java