protected abstract class StructLayout.NumberField extends StructLayout.Field
Modifier | Constructor and Description |
---|---|
protected |
StructLayout.NumberField(NativeType nativeType) |
protected |
StructLayout.NumberField(NativeType nativeType,
StructLayout.Offset offset) |
protected |
StructLayout.NumberField(Type type) |
protected |
StructLayout.NumberField(Type type,
StructLayout.Offset offset) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue(Pointer ptr)
Returns a
byte representation of this Number. |
double |
doubleValue(Pointer ptr)
Returns an
float representation of this Number. |
float |
floatValue(Pointer ptr)
Returns an
float representation of this Number. |
abstract int |
intValue(Pointer ptr)
Returns a
int representation of this Number. |
long |
longValue(Pointer ptr)
Returns a
long representation of this Number. |
abstract void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
short |
shortValue(Pointer ptr)
Returns a
short representation of this Number. |
String |
toString(Pointer ptr)
Returns a string representation of this
Number . |
enclosing, offset
protected final Type type
protected StructLayout.NumberField(NativeType nativeType)
protected StructLayout.NumberField(Type type)
protected StructLayout.NumberField(NativeType nativeType, StructLayout.Offset offset)
protected StructLayout.NumberField(Type type, StructLayout.Offset offset)
public abstract void set(Pointer ptr, Number value)
value
- The new value.public double doubleValue(Pointer ptr)
float
representation of this Number.float
value for this Number.public float floatValue(Pointer ptr)
float
representation of this Number.float
value for this Number.public byte byteValue(Pointer ptr)
byte
representation of this Number.byte
value for this Number.public short shortValue(Pointer ptr)
short
representation of this Number.short
value for this Number.public abstract int intValue(Pointer ptr)
int
representation of this Number.int
value for this Number.public long longValue(Pointer ptr)
long
representation of this Number.long
value for this Number.Copyright © 2015. All rights reserved.