@Override
	void truncate(int length) {
		checkImmutable();
		int maxLen = length - 4;
		if (data != null && data.length > maxLen) {
			byte[] newData = new byte[maxLen];
			System.arraycopy(data, 0, newData, 0, maxLen);
			data = newData;
		}
	}
Construct a binary data field with an initial value of data.
@param data initial value
@param immutable true if field value is immutable
Ghidra/Framework/DB/src/main/java/db/BinaryField.java