jnr.ffi
Class StructLayout.IntegerAlias

java.lang.Object
  extended by jnr.ffi.StructLayout.Field
      extended by jnr.ffi.StructLayout.NumberField
          extended by jnr.ffi.StructLayout.IntegerAlias
Direct Known Subclasses:
StructLayout.blkcnt_t, StructLayout.blksize_t, StructLayout.caddr_t, StructLayout.clock_t, StructLayout.dev_t, StructLayout.fsblkcnt_t, StructLayout.fsfilcnt_t, StructLayout.gid_t, StructLayout.id_t, StructLayout.in_addr_t, StructLayout.in_port_t, StructLayout.ino_t, StructLayout.ino64_t, StructLayout.int16_t, StructLayout.int32_t, StructLayout.int64_t, StructLayout.int8_t, StructLayout.intptr_t, StructLayout.key_t, StructLayout.mode_t, StructLayout.nlink_t, StructLayout.off_t, StructLayout.pid_t, StructLayout.rlim_t, StructLayout.sa_family_t, StructLayout.size_t, StructLayout.socklen_t, StructLayout.ssize_t, StructLayout.swblk_t, StructLayout.time_t, StructLayout.u_int16_t, StructLayout.u_int32_t, StructLayout.u_int64_t, StructLayout.u_int8_t, StructLayout.uid_t, StructLayout.uintptr_t
Enclosing class:
StructLayout

public abstract class StructLayout.IntegerAlias
extends StructLayout.NumberField


Field Summary
 
Fields inherited from class jnr.ffi.StructLayout.NumberField
type
 
Method Summary
 long get(Pointer ptr)
          Gets the value for this field.
 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, long value)
           
 void set(Pointer ptr, java.lang.Number value)
          Sets the field to a new value.
 
Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, doubleValue, floatValue, shortValue, toString
 
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
 

Method Detail

set

public void set(Pointer ptr,
                java.lang.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.

set

public void set(Pointer ptr,
                long value)

get

public final long get(Pointer ptr)
Gets the value for this field.

Returns:
a long.

intValue

public 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 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.


Copyright © 2012. All Rights Reserved.