|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.Float
public class Struct.Float
| Field Summary |
|---|
| Fields inherited from class jnr.ffi.Struct.NumberField |
|---|
type |
| Constructor Summary | |
|---|---|
Struct.Float()
|
|
Struct.Float(Struct.Offset offset)
Creates a new float field at a specific offset |
|
| Method Summary | |
|---|---|
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(java.lang.Number value)
Sets the field to a new value. |
java.lang.String |
toString()
Returns a string representation of this Address. |
| Methods inherited from class jnr.ffi.Struct.NumberField |
|---|
byteValue, getMemory, offset, shortValue, struct |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Struct.Float()
public Struct.Float(Struct.Offset offset)
offset - The offset within the memory area for this field.| Method Detail |
|---|
public final float get()
public final void set(float value)
public void set(java.lang.Number value)
Struct.NumberField
set in class Struct.NumberFieldvalue - The new value.public final int intValue()
Struct.NumberFieldint representation of this Number.
intValue in class Struct.NumberFieldint value for this Number.public final double doubleValue()
Struct.NumberFieldfloat representation of this Number.
doubleValue in class Struct.NumberFieldfloat value for this Number.public final float floatValue()
Struct.NumberFieldfloat representation of this Number.
floatValue in class Struct.NumberFieldfloat value for this Number.public final long longValue()
Struct.NumberFieldlong representation of this Number.
longValue in class Struct.NumberFieldlong value for this Number.public final java.lang.String toString()
Struct.NumberFieldAddress.
toString in class Struct.NumberFieldAddress.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||