Package de.intarsys.nativec.type
Class NativeFloat
java.lang.Object
de.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeSimple
de.intarsys.nativec.type.NativeNumber
de.intarsys.nativec.type.NativeFloat
- All Implemented Interfaces:
INativeMemory,INativeObject
A wrapper for a primitive float.
-
Field Summary
FieldsFields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_FLOAT, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteThis as a java primitive byte value.static NativeFloatcreateFromAddress(long address) floatThe meta information and behavior for the NativeObject.getValue()A Java side representation from the memory.intintValue()This as a java primitive int value.longThis as a java primitive long value.voidsetValue(float value) voidAssign (and marshall to memory) the Java side representation.shortThis as a java primitive short value.toString()Methods inherited from class de.intarsys.nativec.type.NativeSimple
getByteCountMethods inherited from class de.intarsys.nativec.type.NativeObject
cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
-
Field Details
-
META
The meta class instance
-
-
Constructor Details
-
NativeFloat
public NativeFloat()Create a new wrapper -
NativeFloat
public NativeFloat(float value) Create a new wrapper
-
-
Method Details
-
createFromAddress
-
byteValue
public byte byteValue()Description copied from class:NativeNumberThis as a java primitive byte value.- Specified by:
byteValuein classNativeNumber- Returns:
- This as a java primitive byte value.
-
getNativeType
Description copied from class:NativeObjectThe meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeTypein interfaceINativeObject- Specified by:
getNativeTypein classNativeObject- Returns:
- The meta information and behavior for the NativeObject.
-
floatValue
public float floatValue()- Specified by:
floatValuein classNativeNumber
-
getValue
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
intValue
public int intValue()Description copied from class:NativeNumberThis as a java primitive int value.- Specified by:
intValuein classNativeNumber- Returns:
- This as a java primitive int value.
-
longValue
public long longValue()Description copied from class:NativeNumberThis as a java primitive long value.- Specified by:
longValuein classNativeNumber- Returns:
- This as a java primitive long value.
-
setValue
Description copied from interface:INativeObjectAssign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-
setValue
public void setValue(float value) -
shortValue
public short shortValue()Description copied from class:NativeNumberThis as a java primitive short value.- Specified by:
shortValuein classNativeNumber- Returns:
- This as a java primitive short value.
-
toString
-