com.kenai.jaffl.byref
Class AddressByReference

java.lang.Object
  extended by com.kenai.jaffl.byref.AbstractPrimitiveReference<Address>
      extended by com.kenai.jaffl.byref.AddressByReference
All Implemented Interfaces:
ByReference<Address>

public class AddressByReference
extends AbstractPrimitiveReference<Address>


Field Summary
 
Fields inherited from class com.kenai.jaffl.byref.AbstractPrimitiveReference
value
 
Constructor Summary
AddressByReference(Address value)
          Creates a new reference to an address value
 
Method Summary
 void marshal(java.nio.ByteBuffer buffer)
          Copies the address value to native memory
 int nativeSize()
          Gets the native size of type of reference
 void unmarshal(java.nio.ByteBuffer buffer)
          Copies the address value from native memory
 
Methods inherited from class com.kenai.jaffl.byref.AbstractPrimitiveReference
getValue, nativeType, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressByReference

public AddressByReference(Address value)
Creates a new reference to an address value

Parameters:
value - the initial native value
Method Detail

marshal

public void marshal(java.nio.ByteBuffer buffer)
Copies the address value to native memory

Parameters:
buffer - the native memory buffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buffer)
Copies the address value from native memory

Parameters:
buffer - the native memory buffer.

nativeSize

public int nativeSize()
Gets the native size of type of reference

Returns:
Integer.SIZE