com.kenai.jaffl.byref
Class ByteByReference
java.lang.Object
com.kenai.jaffl.byref.AbstractPrimitiveReference<Byte>
com.kenai.jaffl.byref.ByteByReference
- All Implemented Interfaces:
- ByReference<Byte>
public class ByteByReference
- extends AbstractPrimitiveReference<Byte>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteByReference
public ByteByReference(Byte value)
- Creates a new reference to a byte value
- Parameters:
value
- the initial native value
marshal
public void marshal(ByteBuffer buffer)
- Copies the Byte value to native memory
- Parameters:
buffer
- the native memory buffer
unmarshal
public void unmarshal(ByteBuffer buffer)
- Copies the Byte 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
Copyright © 2011. All Rights Reserved.