private static int[] eraseArray(int[] array, int start, int end) {
		int delsize = end - start;
		int newsize = array.length - delsize;
		int[] res = new int[newsize];
		for (int i = 0; i < start; ++i) {
			res[i] = array[i];
		}
		for (int i = end; i < array.length; ++i) {
			res[i - delsize] = array[i];
		}
		return res;
	}
A mask/value pair viewed as two bitstreams
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/pattern/PatternBlock.java