public final class StructLayout.Double extends StructLayout.NumberField
type
Constructor and Description |
---|
Double() |
Double(StructLayout.Offset 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. |
double |
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,
double 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, shortValue
enclosing, offset
public Double()
public Double(StructLayout.Offset offset)
public final double get(Pointer ptr)
public final void set(Pointer ptr, double value)
public void set(Pointer ptr, Number value)
StructLayout.NumberField
set
in class StructLayout.NumberField
ptr
- The pointer to the field.value
- The new value.public final int intValue(Pointer ptr)
StructLayout.NumberField
int
representation of this Number.intValue
in class StructLayout.NumberField
ptr
- The pointer to the field.int
value for this Number.public final long longValue(Pointer ptr)
StructLayout.NumberField
long
representation of this Number.longValue
in class StructLayout.NumberField
ptr
- The pointer to the field.long
value for this Number.public final float floatValue(Pointer ptr)
StructLayout.NumberField
float
representation of this Number.floatValue
in class StructLayout.NumberField
ptr
- The pointer to the field.float
value for this Number.public final double doubleValue(Pointer ptr)
StructLayout.NumberField
float
representation of this Number.doubleValue
in class StructLayout.NumberField
ptr
- The pointer to the field.float
value for this Number.public final String toString(Pointer ptr)
StructLayout.NumberField
Number
.toString
in class StructLayout.NumberField
ptr
- The pointer to the field.Number
.Copyright © 2017. All rights reserved.