public final class FloatByReference extends AbstractNumberReference<Float>
Constructor and Description |
---|
FloatByReference()
Creates a new reference to a short value initialized to zero.
|
FloatByReference(float value)
Creates a new reference to a float value
|
FloatByReference(Float value)
Creates a new reference to a float value
|
Modifier and Type | Method and Description |
---|---|
void |
fromNative(Runtime runtime,
Pointer buffer,
long offset)
Copies the float 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 float value to native memory
|
byteValue, checkNull, doubleValue, floatValue, getValue, intValue, longValue, shortValue
public FloatByReference()
public FloatByReference(Float value)
value
- the initial native valuepublic FloatByReference(float 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.