h.ST_refstr_t Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package h;
import smetana.core.CString;
import smetana.core.FieldOffset;
final public class ST_refstr_t extends ST_dtlink_s {
public int refcnt;
public CString s;
@Override
public Object getTheField(FieldOffset offset) {
if (offset == null || offset.getSign() == 0)
return this;
if (offset == FieldOffset.s)
return s;
throw new UnsupportedOperationException();
}
public void setString(CString newData) {
this.s = newData;
this.s.setParent(this);
}
}
// typedef struct refstr_t {
// Dtlink_t link;
// unsigned long refcnt;
// char *s;
// char store[1]; /* this is actually a dynamic array */
// } refstr_t;