@Override
	public void putBigInteger(byte[] b, int offset, int size, BigInteger value) {
		Objects.checkFromIndexSize(offset, size, b.length);

		int fillIndex = offset + size - 1; // start fill from MSB
		int srcIndex;

		byte[] valBytes = value.toByteArray();
		if (valBytes.length >= size) {
			srcIndex = valBytes.length - size;
		}
		else {
			srcIndex = 0;
			byte signbits = (value.signum() < 0) ? (byte) 0xff : 0;
			for (int i = valBytes.length; i < size; i++) {
				b[fillIndex--] = signbits;
			}
		}
		for (int i = srcIndex; i < valBytes.length; i++) {
			b[fillIndex--] = valBytes[i];
		}
	}
Don't use this constructor to create new instances of this class.  Use the static {@link #INSTANCE} instead
or {@link DataConverter#getInstance(boolean)}
Ghidra/Framework/Generic/src/main/java/ghidra/util/LittleEndianDataConverter.java