@Override
	int write(Buffer buf, int offset) throws IndexOutOfBoundsException, IOException {
		if (bytes == null) {
			return buf.putInt(offset, -1);
		}
		offset = buf.putInt(offset, bytes.length);
		return buf.put(offset, bytes);
	}
Construct a String field with an initial value of s.
@param str initial string value or null
@param immutable true if field value is immutable
Ghidra/Framework/DB/src/main/java/db/StringField.java