Class FloatIEEE754

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.FloatIEEE754
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class FloatIEEE754 extends ProxyInstance
The GFloatIEEE754 and GDoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles. These unions are defined as appropriate for a given platform. IEEE floats and doubles are supported (used for storage) by at least Intel, PPC and Sparc.
  • Constructor Details

    • FloatIEEE754

      public FloatIEEE754(MemorySegment address)
      Create a FloatIEEE754 proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • FloatIEEE754

      public FloatIEEE754(Arena arena)
      Allocate a new FloatIEEE754.
      Parameters:
      arena - to control the memory allocation scope
    • FloatIEEE754

      public FloatIEEE754()
      Allocate a new FloatIEEE754. The memory is allocated with Arena.ofAuto().
    • FloatIEEE754

      public FloatIEEE754(float vFloat, Arena arena)
      Allocate a new FloatIEEE754 with the fields set to the provided values.
      Parameters:
      vFloat - value for the field vFloat
      arena - to control the memory allocation scope
    • FloatIEEE754

      public FloatIEEE754(float vFloat)
      Allocate a new FloatIEEE754 with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      vFloat - value for the field vFloat
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readVFloat

      public float readVFloat()
      Read the value of the field v_float.
      Returns:
      The value of the field v_float
    • writeVFloat

      public void writeVFloat(float vFloat)
      Write a value in the field v_float.
      Parameters:
      vFloat - The new value for the field v_float