public class FloatByReference extends AbstractPrimitiveReference<java.lang.Float>
value
Constructor and Description |
---|
FloatByReference(java.lang.Float value)
Creates a new reference to a float value
|
Modifier and Type | Method and Description |
---|---|
void |
marshal(java.nio.ByteBuffer buffer)
Copies the float value to native memory
|
int |
nativeSize()
Gets the native size of type of reference in bytes.
|
void |
unmarshal(java.nio.ByteBuffer buffer)
Copies the float value from native memory
|
getValue, nativeType, setValue
public FloatByReference(java.lang.Float value)
value
- the initial native valuepublic void marshal(java.nio.ByteBuffer buffer)
buffer
- the native memory bufferpublic void unmarshal(java.nio.ByteBuffer buffer)
buffer
- the native memory buffer.public final int nativeSize()