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
- 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.