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 |
marshal(Pointer buffer,
long offset)
Copies the float value to native memory
|
int |
nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
void |
unmarshal(Pointer buffer,
long offset)
Copies the float value from 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 marshal(Pointer buffer, long offset)
buffer
- the native memory bufferpublic void unmarshal(Pointer buffer, long offset)
buffer
- the native memory buffer.public final int nativeSize(Runtime runtime)
Copyright © 2013. All Rights Reserved.