@Override
	int write(Buffer buf, int offset) throws IndexOutOfBoundsException, IOException {
		if (data == null) {
			return buf.putInt(offset, -1);
		}
		offset = buf.putInt(offset, data.length);
		return buf.put(offset, data);
	}
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