jnr.ffi
Class Struct.Address

java.lang.Object
  extended by jnr.ffi.Struct.Member
      extended by jnr.ffi.Struct.NumberField
          extended by jnr.ffi.Struct.Address
Enclosing class:
Struct

public class Struct.Address
extends Struct.NumberField

Represents a native memory address.


Field Summary
 
Fields inherited from class jnr.ffi.Struct.NumberField
type
 
Constructor Summary
Struct.Address()
          Creates a new Address field.
Struct.Address(Struct.Offset offset)
           
 
Method Summary
 Address get()
          Reads an Address value from the struct.
 int intValue()
          Returns an integer representation of this address.
 long longValue()
          Returns an long representation of this address.
 void set(Address value)
          Puts a Address value into the native memory.
 void set(Number value)
          Sets the field to a new value.
 String toString()
          Returns a string representation of this Address.
 
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struct.Address

public Struct.Address()
Creates a new Address field.


Struct.Address

public Struct.Address(Struct.Offset offset)
Method Detail

get

public final Address get()
Reads an Address value from the struct.

Returns:
a Address.

set

public final void set(Address value)
Puts a Address value into the native memory.


set

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

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

intValue

public final int intValue()
Returns an integer representation of this address.

Specified by:
intValue in class Struct.NumberField
Returns:
an integer value for this address.

longValue

public final long longValue()
Returns an long representation of this address.

Overrides:
longValue in class Struct.NumberField
Returns:
an long value for this address.

toString

public final String toString()
Returns a string representation of this Address.

Overrides:
toString in class Struct.NumberField
Returns:
a string representation of this Address.


Copyright © 2013. All Rights Reserved.