|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
protected abstract class StructLayout.NumberField
Base class for all Number structure fields.
| Field Summary | |
|---|---|
protected Type |
type
|
| Constructor Summary | |
|---|---|
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)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class jnr.ffi.StructLayout.Field |
|---|
enclosing, offset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Type type
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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.public String toString(Pointer ptr)
Number.
Number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||