com.kenai.jaffl.byref

Class IntByReference

public final class IntByReference extends AbstractPrimitiveReference<Integer>

A class to pass a reference (or address of) an Integer to a method.
Constructor Summary
IntByReference(Integer value)
Creates a new reference to a integer value
Method Summary
voidmarshal(ByteBuffer buffer)
Copies the integer value to native memory
intnativeSize()
Gets the native size of type of reference
voidunmarshal(ByteBuffer buffer)
Copies the integer value from native memory

Constructor Detail

IntByReference

public IntByReference(Integer value)
Creates a new reference to a integer value

Parameters: value the initial native value

Method Detail

marshal

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

Parameters: buffer the native memory buffer

nativeSize

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

Returns: Integer.SIZE

unmarshal

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

Parameters: buffer the native memory buffer.