public class FieldString extends java.lang.Object implements IDestructableField
Field<String> in order to
avoid extra GC overhead.| Modifier and Type | Field and Description |
|---|---|
protected int |
offset |
static int |
RECORD_SIZE |
| Constructor and Description |
|---|
FieldString(java.lang.String structName,
int fieldNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
destruct(Nd nd,
long address) |
IString |
get(Nd nd,
long address) |
java.lang.String |
getFieldName()
Returns the name of the field.
|
int |
getOffset()
Returns the field offset, in bytes from the start of the struct.
|
int |
getRecordSize()
Returns the size of the field, in bytes.
|
void |
put(Nd nd,
long address,
char[] newString) |
void |
put(Nd nd,
long address,
java.lang.String newString) |
protected void |
setFieldName(java.lang.String fieldName) |
void |
setOffset(int offset)
Sets the field offset (bytes from the start of the struct).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlignmentpublic static final int RECORD_SIZE
protected int offset
public void put(Nd nd, long address, char[] newString)
public void put(Nd nd, long address, java.lang.String newString)
public void destruct(Nd nd, long address)
destruct in interface IDestructableFieldpublic int getRecordSize()
IFieldgetRecordSize in interface IFieldprotected final void setFieldName(java.lang.String fieldName)
public final void setOffset(int offset)
IFieldpublic final int getOffset()
IFieldpublic final java.lang.String getFieldName()
IFieldgetFieldName in interface IField