private byte getMask(String token) {
		byte b = 0;
		for (int i = 0; i < 8; i++) {
			b <<= 1;
			if (i < token.length()) {
				char c = token.charAt(i);
				if (c == '1' || c == '0') {
					b |= 1;
				}
			}
			else {
				b |= 1;
			}

		}

		return b;
	}
Return a mask byte that has a bit set to 1 for each bit that is not a wildcard.  Any bits
that aren't specified (i.e. token.lenght &lt; 8) are treated as valid test bits. 
@param token the string of bits to determine a mask for.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/BinarySearchFormat.java