com.kenai.jaffl.byref
Interface ByReference<T>

All Known Implementing Classes:
AbstractPrimitiveReference, AddressByReference, ByteByReference, DoubleByReference, FloatByReference, IntByReference, LongLongByReference, ShortByReference

public interface ByReference<T>


Method Summary
 T getValue()
           
 void marshal(java.nio.ByteBuffer buffer)
          Copies the java value to native memory
 int nativeSize()
          Gets the size of the native buffer required to store the value
 void unmarshal(java.nio.ByteBuffer buffer)
          Copies the java value from native memory
 

Method Detail

nativeSize

int nativeSize()
Gets the size of the native buffer required to store the value

Returns:
the size in bytes of the native type

marshal

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

Parameters:
buffer - the native memory buffer.

unmarshal

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

Parameters:
buffer - the native memory buffer.

getValue

T getValue()