private byte[] padToByteSize(byte[] bytes, int byteSize, boolean isBigEndian,
			boolean padNegative) {
		if (bytes.length >= byteSize) {
			return bytes;
		}
		byte[] newBytes = new byte[byteSize];
		if (padNegative) {
			Arrays.fill(newBytes, (byte) -1);
		}
		int startIndex = isBigEndian ? byteSize - bytes.length : 0;
		System.arraycopy(bytes, 0, newBytes, startIndex, bytes.length);

		return newBytes;
	}
{@link SearchFormat} for parsing and display bytes in a decimal format. It supports sizes of
2,4,8,16 and can be either signed or unsigned.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/DecimalSearchFormat.java