public class StructLayout.Float extends StructLayout.NumberField
type| Constructor and Description |
|---|
StructLayout.Float() |
StructLayout.Float(StructLayout.Offset offset)
Creates a new float field at a specific offset
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue(Pointer ptr)
Returns an
float representation of this Number. |
float |
floatValue(Pointer ptr)
Returns an
float representation of this Number. |
float |
get(Pointer ptr) |
int |
intValue(Pointer ptr)
Returns a
int representation of this Number. |
long |
longValue(Pointer ptr)
Returns a
long representation of this Number. |
void |
set(Pointer ptr,
float value) |
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
String |
toString(Pointer ptr)
Returns a string representation of this
Number. |
byteValue, shortValueenclosing, offsetpublic StructLayout.Float()
public StructLayout.Float(StructLayout.Offset offset)
offset - The offset within the memory area for this field.public final float get(Pointer ptr)
public final void set(Pointer ptr, float value)
public void set(Pointer ptr, Number value)
StructLayout.NumberFieldset in class StructLayout.NumberFieldvalue - The new value.public final int intValue(Pointer ptr)
StructLayout.NumberFieldint representation of this Number.intValue in class StructLayout.NumberFieldint value for this Number.public final double doubleValue(Pointer ptr)
StructLayout.NumberFieldfloat representation of this Number.doubleValue in class StructLayout.NumberFieldfloat value for this Number.public final float floatValue(Pointer ptr)
StructLayout.NumberFieldfloat representation of this Number.floatValue in class StructLayout.NumberFieldfloat value for this Number.public final long longValue(Pointer ptr)
StructLayout.NumberFieldlong representation of this Number.longValue in class StructLayout.NumberFieldlong value for this Number.public final String toString(Pointer ptr)
StructLayout.NumberFieldNumber.toString in class StructLayout.NumberFieldNumber.Copyright © 2013. All rights reserved.