public class Struct.Float extends Struct.NumberField
type| 构造器和说明 |
|---|
Float() |
Float(Struct.Offset offset)
Creates a new float field at a specific offset
|
| 限定符和类型 | 方法和说明 |
|---|---|
double |
doubleValue()
Returns an
float representation of this Number. |
float |
floatValue()
Returns an
float representation of this Number. |
float |
get() |
int |
intValue()
Returns a
int representation of this Number. |
long |
longValue()
Returns a
long representation of this Number. |
void |
set(float value) |
void |
set(Number value)
Sets the field to a new value.
|
String |
toString()
Returns a string representation of this
Number. |
byteValue, getMemory, offset, shortValue, structpublic Float()
public Float(Struct.Offset offset)
offset - The offset within the memory area for this field.public final float get()
public final void set(float value)
public void set(Number value)
Struct.NumberFieldset 在类中 Struct.NumberFieldvalue - The new value.public final int intValue()
Struct.NumberFieldint representation of this Number.intValue 在类中 Struct.NumberFieldint value for this Number.public final double doubleValue()
Struct.NumberFieldfloat representation of this Number.doubleValue 在类中 Struct.NumberFieldfloat value for this Number.public final float floatValue()
Struct.NumberFieldfloat representation of this Number.floatValue 在类中 Struct.NumberFieldfloat value for this Number.public final long longValue()
Struct.NumberFieldlong representation of this Number.longValue 在类中 Struct.NumberFieldlong value for this Number.public final String toString()
Struct.NumberFieldNumber.toString 在类中 Struct.NumberFieldNumber.Copyright © 2021. All rights reserved.