public String toBinaryString() {

		StringBuilder valueString = new StringBuilder();
		StringBuilder maskString = new StringBuilder();

		for (int i = 0; i < value.length; i++) {
			valueString.append(InstructionSearchUtils.toBinaryString(value[i]));
		}
		for (int i = 0; i < mask.length; i++) {
			maskString.append(InstructionSearchUtils.toBinaryString(mask[i]));
		}

		String combinedString = "";
		try {
			combinedString = InstructionSearchUtils.formatSearchString(valueString.toString(),
				maskString.toString());
		}
		catch (InvalidInputException e) {
			e.printStackTrace();
		}

		return combinedString;
	}
Returns the bytes and masking merged together, as a binary string.

@param mask
@param value
@return list containing the value (index 0) and mask (index 1).
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/model/MaskContainer.java