@Override
	public int getColumnPosition(ByteBlock block, int byteOffset) {
		if (byteOffset > nbytes - 1) {
			throw new IllegalArgumentException("invalid byteOffset: " + byteOffset);
		}
		if (block.isBigEndian()) {
			return byteOffset * 2;
		}
		return (nbytes - 1 - byteOffset) * 2;
	}
Converts byte values to value represented as a 2, 4, 8, or 16-byte hex number.
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/format/HexValueFormatModel.java