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
- buffer
- the native memory bufferpublic void fromNative(Runtime runtime, Pointer buffer, long offset)
runtime
- buffer
- the native memory buffer.public final int nativeSize(Runtime runtime)
Copyright © 2018. All rights reserved.