Class ecs_system_stats_t

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

public class ecs_system_stats_t extends Object
struct ecs_system_stats_t {
    int64_t first_;
    ecs_metric_t time_spent;
    int64_t last_;
    _Bool task;
    ecs_query_stats_t query;
}
  • Method Details

    • layout

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

      public static final ValueLayout.OfLong first_$layout()
      Layout for field:
      int64_t first_
      
    • first_$offset

      public static final long first_$offset()
      Offset for field:
      int64_t first_
      
    • first_

      public static long first_(MemorySegment struct)
      Getter for field:
      int64_t first_
      
    • first_

      public static void first_(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t first_
      
    • time_spent$layout

      public static final GroupLayout time_spent$layout()
      Layout for field:
      ecs_metric_t time_spent
      
    • time_spent$offset

      public static final long time_spent$offset()
      Offset for field:
      ecs_metric_t time_spent
      
    • time_spent

      public static MemorySegment time_spent(MemorySegment struct)
      Getter for field:
      ecs_metric_t time_spent
      
    • time_spent

      public static void time_spent(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_metric_t time_spent
      
    • last_$layout

      public static final ValueLayout.OfLong last_$layout()
      Layout for field:
      int64_t last_
      
    • last_$offset

      public static final long last_$offset()
      Offset for field:
      int64_t last_
      
    • last_

      public static long last_(MemorySegment struct)
      Getter for field:
      int64_t last_
      
    • last_

      public static void last_(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t last_
      
    • task$layout

      public static final ValueLayout.OfBoolean task$layout()
      Layout for field:
      _Bool task
      
    • task$offset

      public static final long task$offset()
      Offset for field:
      _Bool task
      
    • task

      public static boolean task(MemorySegment struct)
      Getter for field:
      _Bool task
      
    • task

      public static void task(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool task
      
    • query$layout

      public static final GroupLayout query$layout()
      Layout for field:
      ecs_query_stats_t query
      
    • query$offset

      public static final long query$offset()
      Offset for field:
      ecs_query_stats_t query
      
    • query

      public static MemorySegment query(MemorySegment struct)
      Getter for field:
      ecs_query_stats_t query
      
    • query

      public static void query(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_stats_t query
      
    • 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()