Package jnr.ffi
Class StructLayout.Float
java.lang.Object
jnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.Float
- Enclosing class:
- StructLayout
-
Field Summary
Fields inherited from class jnr.ffi.StructLayout.NumberField
type -
Constructor Summary
ConstructorsConstructorDescriptionFloat()Float(StructLayout.Offset offset) Creates a new float field at a specific offset -
Method Summary
Modifier and TypeMethodDescriptionfinal doubledoubleValue(Pointer ptr) Returns anfloatrepresentation of thisNumber.final floatfloatValue(Pointer ptr) Returns anfloatrepresentation of thisNumber.final floatfinal intReturns aintrepresentation of thisNumber.final longReturns alongrepresentation of thisNumber.final voidvoidSets the field to a new value.final StringReturns a string representation of thisNumber.Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, shortValueMethods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
Constructor Details
-
Float
public Float() -
Float
Creates a new float field at a specific offset- Parameters:
offset- The offset within the memory area for this field.
-
-
Method Details
-
get
-
set
-
set
Description copied from class:StructLayout.NumberFieldSets the field to a new value.- Specified by:
setin classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.value- The new value.
-
intValue
Description copied from class:StructLayout.NumberFieldReturns aintrepresentation of thisNumber.- Specified by:
intValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a
intvalue for thisNumber.
-
doubleValue
Description copied from class:StructLayout.NumberFieldReturns anfloatrepresentation of thisNumber.- Overrides:
doubleValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- an
floatvalue for thisNumber.
-
floatValue
Description copied from class:StructLayout.NumberFieldReturns anfloatrepresentation of thisNumber.- Overrides:
floatValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- an
floatvalue for thisNumber.
-
longValue
Description copied from class:StructLayout.NumberFieldReturns alongrepresentation of thisNumber.- Overrides:
longValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a
longvalue for thisNumber.
-
toString
Description copied from class:StructLayout.NumberFieldReturns a string representation of thisNumber.- Overrides:
toStringin classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a string representation of this
Number.
-