public static byte[] hexStringToByteArray(String hexString) {
		if (StringUtils.isBlank(hexString)) {
			return new byte[0];
		}
		if (hexString.startsWith("0x") || hexString.startsWith("0X")) {
			hexString = hexString.substring(2);
		}
		return hexFormat.parseHex(hexString);
	}
Converts a {@code String} of hexadecimal character to an array of bytes. An initial "0x"
or "0X" is ignored, as is the case of the digits a-f.
@param hexString String to convert
@return byte array
Ghidra/Features/Base/src/main/java/ghidra/util/SourceFileUtils.java