public final class DoubleByReference extends AbstractNumberReference<Double>
Constructor and Description |
---|
DoubleByReference()
Creates a new reference to a double value initialized to zero.
|
DoubleByReference(double value)
Creates a new reference to a double value
|
DoubleByReference(Double value)
Creates a new reference to a double value
|
Modifier and Type | Method and Description |
---|---|
void |
fromNative(Runtime runtime,
Pointer buffer,
long offset)
Copies the double value from native memory
|
int |
nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
void |
toNative(Runtime runtime,
Pointer buffer,
long offset)
Copies the double value to native memory
|
byteValue, checkNull, doubleValue, floatValue, getValue, intValue, longValue, shortValue
public DoubleByReference()
public DoubleByReference(Double value)
value
- the initial native valuepublic DoubleByReference(double value)
value
- the initial native valuepublic void toNative(Runtime runtime, Pointer buffer, long offset)
runtime
- the current runtime.buffer
- the native memory buffer.offset
- the memory offset.public void fromNative(Runtime runtime, Pointer buffer, long offset)
runtime
- the current runtime.buffer
- the native memory buffer.offset
- the memory offset.public final int nativeSize(Runtime runtime)
runtime
- the current runtime.Copyright © 2017. All rights reserved.