public class NativeFloat extends NativePrimitive
| Modifier and Type | Field and Description |
|---|---|
protected float |
value
The stored value.
|
copyIn, copyOut, passByPointer, ptr, ref, type| Constructor and Description |
|---|
NativeFloat()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getValue()
Access the data element.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
protected void |
readNative(memptr ptr)
Worker method to read the primitive value from the first index position of the given
memory buffer.
|
void |
setValue(float value)
Assign the data element.
|
int |
size()
Report the size (in bytes) of the native memory needed to store this instance.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
protected void |
writeNative(memptr ptr)
Worker method to write the primitive value to the first index position of the given
memory buffer.
|
render, restoreisCopyIn, isCopyOut, isPassByPointer, render, restore, setCopyIn, setCopyOut, setPassByPointer, setType, typepublic float getValue()
public void setValue(float value)
value - The new floating point data element.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class BaseNativeTypein - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class BaseNativeTypeout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.public int size()
This should never be called on the server, only on the client side.
size in class BaseNativeTypeprotected void readNative(memptr ptr)
readNative in class NativePrimitiveptr - The memory buffer to reference.protected void writeNative(memptr ptr)
writeNative in class NativePrimitiveptr - The memory buffer to reference.