com.kenai.jaffl.byref
Class ShortByReference

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

public class ShortByReference
extends AbstractPrimitiveReference<java.lang.Short>


Field Summary
 
Fields inherited from class com.kenai.jaffl.byref.AbstractPrimitiveReference
value
 
Constructor Summary
ShortByReference(java.lang.Short value)
          Creates a new reference to a short value
 
Method Summary
 void marshal(java.nio.ByteBuffer buffer)
          Copies the short value to native memory
 int nativeSize()
          Gets the native size of type of reference in bytes.
 void unmarshal(java.nio.ByteBuffer buffer)
          Copies the short 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

ShortByReference

public ShortByReference(java.lang.Short value)
Creates a new reference to a short value

Parameters:
value - the initial native value
Method Detail

marshal

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

Parameters:
buffer - the native memory buffer

unmarshal

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

Parameters:
buffer - the native memory buffer.

nativeSize

public final int nativeSize()
Gets the native size of type of reference in bytes.

Returns:
the size of a byte in bytes