-
Constructor Summary
Constructors
Creates a new reference to a double value initialized to zero.
Creates a new reference to a double value
Creates a new reference to a double value
-
Method Summary
void
Copies the double value from native memory
final int
Gets the native size of type of reference in bytes.
void
Copies the double value to native memory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DoubleByReference
public DoubleByReference()
Creates a new reference to a double value initialized to zero.
-
DoubleByReference
public DoubleByReference(Double value)
Creates a new reference to a double value
- Parameters:
value - the initial native value
-
DoubleByReference
public DoubleByReference(double value)
Creates a new reference to a double value
- Parameters:
value - the initial native value
-
Method Details
-
toNative
Copies the double value to native memory
- Parameters:
runtime - the current runtime.
buffer - the native memory buffer.
offset - the memory offset.
-
fromNative
Copies the double value from native memory
- Parameters:
runtime - the current runtime.
buffer - the native memory buffer.
offset - the memory offset.
-
nativeSize
public final int nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
- Parameters:
runtime - the current runtime.
- Returns:
- the size of a byte in bytes.