jnr.ffi
Class StructLayout.Double

java.lang.Object
  extended by jnr.ffi.StructLayout.Field
      extended by jnr.ffi.StructLayout.NumberField
          extended by jnr.ffi.StructLayout.Double
Enclosing class:
StructLayout

public final class StructLayout.Double
extends StructLayout.NumberField


Field Summary
 
Fields inherited from class jnr.ffi.StructLayout.NumberField
type
 
Constructor Summary
StructLayout.Double()
           
StructLayout.Double(StructLayout.Offset offset)
           
 
Method Summary
 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.
 
Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, shortValue
 
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
 

Constructor Detail

StructLayout.Double

public StructLayout.Double()

StructLayout.Double

public StructLayout.Double(StructLayout.Offset offset)
Method Detail

get

public final double get(Pointer ptr)

set

public final void set(Pointer ptr,
                      double value)

set

public void set(Pointer ptr,
                Number value)
Description copied from class: StructLayout.NumberField
Sets the field to a new value.

Specified by:
set in class StructLayout.NumberField
value - The new value.

intValue

public final int intValue(Pointer ptr)
Description copied from class: StructLayout.NumberField
Returns a int representation of this Number.

Specified by:
intValue in class StructLayout.NumberField
Returns:
a int value for this Number.

longValue

public final long longValue(Pointer ptr)
Description copied from class: StructLayout.NumberField
Returns a long representation of this Number.

Overrides:
longValue in class StructLayout.NumberField
Returns:
a long value for this Number.

floatValue

public final float floatValue(Pointer ptr)
Description copied from class: StructLayout.NumberField
Returns an float representation of this Number.

Overrides:
floatValue in class StructLayout.NumberField
Returns:
an float value for this Number.

doubleValue

public final double doubleValue(Pointer ptr)
Description copied from class: StructLayout.NumberField
Returns an float representation of this Number.

Overrides:
doubleValue in class StructLayout.NumberField
Returns:
an float value for this Number.

toString

public final String toString(Pointer ptr)
Description copied from class: StructLayout.NumberField
Returns a string representation of this Number.

Overrides:
toString in class StructLayout.NumberField
Returns:
a string representation of this Number.


Copyright © 2013. All Rights Reserved.