Class ecs_sync_stats_t

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

public class ecs_sync_stats_t extends Object
struct ecs_sync_stats_t {
    int64_t first_;
    ecs_metric_t time_spent;
    ecs_metric_t commands_enqueued;
    int64_t last_;
    int32_t system_count;
    _Bool multi_threaded;
    _Bool immediate;
}
  • 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
      
    • commands_enqueued$layout

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

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

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

      public static void commands_enqueued(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_metric_t commands_enqueued
      
    • 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_
      
    • system_count$layout

      public static final ValueLayout.OfInt system_count$layout()
      Layout for field:
      int32_t system_count
      
    • system_count$offset

      public static final long system_count$offset()
      Offset for field:
      int32_t system_count
      
    • system_count

      public static int system_count(MemorySegment struct)
      Getter for field:
      int32_t system_count
      
    • system_count

      public static void system_count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t system_count
      
    • multi_threaded$layout

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

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

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

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

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

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

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

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