public abstract class Struct.IntegerAlias extends Struct.NumberField
type
Constructor and Description |
---|
IntegerAlias(TypeAlias type) |
IntegerAlias(TypeAlias type,
Struct.Offset offset) |
Modifier and Type | Method and Description |
---|---|
long |
get()
Gets the value for this field.
|
int |
intValue()
Returns a
int representation of this Number. |
long |
longValue()
Returns a
long representation of this Number. |
void |
set(long value) |
void |
set(java.lang.Number value)
Sets the field to a new value.
|
java.lang.String |
toString()
Returns a string representation of this field.
|
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
IntegerAlias(TypeAlias type)
IntegerAlias(TypeAlias type, Struct.Offset offset)
public void set(java.lang.Number value)
Struct.NumberField
set
in class Struct.NumberField
value
- The new value.public void set(long value)
public final long get()
public int intValue()
Struct.NumberField
int
representation of this Number.intValue
in class Struct.NumberField
int
value for this Number.public long longValue()
Struct.NumberField
long
representation of this Number.longValue
in class Struct.NumberField
long
value for this Number.public final java.lang.String toString()
toString
in class Struct.NumberField