Class ecs_gauge_t

java.lang.Object
com.github.elebras1.flecs.ecs_gauge_t

public class ecs_gauge_t extends Object
struct ecs_gauge_t {
    float avg[60];
    float min[60];
    float max[60];
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • avg$layout

      public static final SequenceLayout avg$layout()
      Layout for field:
      float avg[60]
      
    • avg$offset

      public static final long avg$offset()
      Offset for field:
      float avg[60]
      
    • avg

      public static MemorySegment avg(MemorySegment struct)
      Getter for field:
      float avg[60]
      
    • avg

      public static void avg(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float avg[60]
      
    • avg$dimensions

      public static long[] avg$dimensions()
      Dimensions for array field:
      float avg[60]
      
    • avg

      public static float avg(MemorySegment struct, long index0)
      Indexed getter for field:
      float avg[60]
      
    • avg

      public static void avg(MemorySegment struct, long index0, float fieldValue)
      Indexed setter for field:
      float avg[60]
      
    • min$layout

      public static final SequenceLayout min$layout()
      Layout for field:
      float min[60]
      
    • min$offset

      public static final long min$offset()
      Offset for field:
      float min[60]
      
    • min

      public static MemorySegment min(MemorySegment struct)
      Getter for field:
      float min[60]
      
    • min

      public static void min(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float min[60]
      
    • min$dimensions

      public static long[] min$dimensions()
      Dimensions for array field:
      float min[60]
      
    • min

      public static float min(MemorySegment struct, long index0)
      Indexed getter for field:
      float min[60]
      
    • min

      public static void min(MemorySegment struct, long index0, float fieldValue)
      Indexed setter for field:
      float min[60]
      
    • max$layout

      public static final SequenceLayout max$layout()
      Layout for field:
      float max[60]
      
    • max$offset

      public static final long max$offset()
      Offset for field:
      float max[60]
      
    • max

      public static MemorySegment max(MemorySegment struct)
      Getter for field:
      float max[60]
      
    • max

      public static void max(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float max[60]
      
    • max$dimensions

      public static long[] max$dimensions()
      Dimensions for array field:
      float max[60]
      
    • max

      public static float max(MemorySegment struct, long index0)
      Indexed getter for field:
      float max[60]
      
    • max

      public static void max(MemorySegment struct, long index0, float fieldValue)
      Indexed setter for field:
      float max[60]
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()