com.kenai.jaffl.byref

Interface ByReference<T>

public interface ByReference<T>

Method Summary
TgetValue()
voidmarshal(ByteBuffer buffer)
Copies the java value to native memory
intnativeSize()
Gets the size of the native buffer required to store the value
voidunmarshal(ByteBuffer buffer)
Copies the java value from native memory

Method Detail

getValue

public T getValue()

marshal

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

Parameters: buffer the native memory buffer.

nativeSize

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

Returns: the size in bytes of the native type

unmarshal

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

Parameters: buffer the native memory buffer.