protected abstract class StructLayout.NumberField extends StructLayout.Field
| Modifier | Constructor and Description |
|---|---|
protected |
NumberField(NativeType nativeType) |
protected |
NumberField(NativeType nativeType,
StructLayout.Offset offset) |
protected |
NumberField(Type type) |
protected |
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, offsetprotected final Type type
protected NumberField(NativeType nativeType)
protected NumberField(Type type)
protected NumberField(NativeType nativeType, StructLayout.Offset offset)
protected NumberField(Type type, StructLayout.Offset offset)
public abstract void set(Pointer ptr, Number value)
ptr - The pointer to the field.value - The new value.public double doubleValue(Pointer ptr)
float representation of this Number.ptr - The pointer to the field.float value for this Number.public float floatValue(Pointer ptr)
float representation of this Number.ptr - The pointer to the field.float value for this Number.public byte byteValue(Pointer ptr)
byte representation of this Number.ptr - The pointer to the field.byte value for this Number.public short shortValue(Pointer ptr)
short representation of this Number.ptr - The pointer to the field.short value for this Number.public abstract int intValue(Pointer ptr)
int representation of this Number.ptr - The pointer to the field.int value for this Number.public long longValue(Pointer ptr)
long representation of this Number.ptr - The pointer to the field.long value for this Number.Copyright © 2017. All rights reserved.