protected abstract class Struct.NumberField extends java.lang.Number implements Struct.Member
| Modifier | Constructor and Description |
|---|---|
protected |
Struct.NumberField(int size) |
protected |
Struct.NumberField(int size,
int align) |
protected |
Struct.NumberField(int size,
int align,
Struct.Offset offset) |
protected |
Struct.NumberField(int size,
Struct.Offset offset) |
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Returns an
float representation of this Number. |
float |
floatValue()
Returns an
float representation of this Number. |
MemoryIO |
getMemoryIO()
Gets the MemoryIO used to read/write this Member.
|
long |
longValue()
Returns an
long representation of this Number. |
long |
offset()
Gets the offset within the structure for this field.
|
abstract void |
set(java.lang.Number value)
Sets the field to a new value.
|
Struct |
struct()
Gets the Struct this Member is in.
|
java.lang.String |
toString()
Returns a string representation of this
Address. |
protected Struct.NumberField(int size)
protected Struct.NumberField(int size,
Struct.Offset offset)
protected Struct.NumberField(int size,
int align,
Struct.Offset offset)
protected Struct.NumberField(int size,
int align)
public final MemoryIO getMemoryIO()
getMemoryIO in interface Struct.Memberpublic final Struct struct()
struct in interface Struct.Memberpublic final long offset()
offset in interface Struct.Memberpublic abstract void set(java.lang.Number value)
value - The new value.public double doubleValue()
float representation of this Number.doubleValue in class java.lang.Numberfloat value for this Number.public float floatValue()
float representation of this Number.floatValue in class java.lang.Numberfloat value for this Number.public long longValue()
long representation of this Number.longValue in class java.lang.Numberlong value for this Number.public java.lang.String toString()
Address.toString in class java.lang.ObjectAddress.