@Override
	public int getByteOffset(ByteBlock block, int pos) {
		if (prefixEnabled) {
			if (pos <= 3) {
				return 0;
			}
			else if (pos < (2 + unitByteSize * 2)) {
				return ((pos - 2) / 2);
			}
			return unitByteSize - 1;
		}
		if (pos < unitByteSize * 2) {
			return (pos / 2);
		}
		return unitByteSize - 1;
	}
Returns the byte used to generate the character at a given
position.
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/format/HexFormatModel.java