Class EcsWorldSummary

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

public class EcsWorldSummary extends Object
struct {
    double target_fps;
    double time_scale;
    double fps;
    double frame_time_total;
    double system_time_total;
    double merge_time_total;
    int64_t entity_count;
    int64_t table_count;
    int64_t frame_count;
    int64_t command_count;
    int64_t merge_count;
    int64_t systems_ran_total;
    int64_t observers_ran_total;
    int64_t queries_ran_total;
    int32_t tag_count;
    int32_t component_count;
    int32_t pair_count;
    double frame_time_frame;
    double system_time_frame;
    double merge_time_frame;
    int64_t merge_count_frame;
    int64_t systems_ran_frame;
    int64_t observers_ran_frame;
    int64_t queries_ran_frame;
    int64_t command_count_frame;
    double simulation_time;
    uint32_t uptime;
    ecs_build_info_t build_info;
}
  • Method Details

    • layout

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

      public static final ValueLayout.OfDouble target_fps$layout()
      Layout for field:
      double target_fps
      
    • target_fps$offset

      public static final long target_fps$offset()
      Offset for field:
      double target_fps
      
    • target_fps

      public static double target_fps(MemorySegment struct)
      Getter for field:
      double target_fps
      
    • target_fps

      public static void target_fps(MemorySegment struct, double fieldValue)
      Setter for field:
      double target_fps
      
    • time_scale$layout

      public static final ValueLayout.OfDouble time_scale$layout()
      Layout for field:
      double time_scale
      
    • time_scale$offset

      public static final long time_scale$offset()
      Offset for field:
      double time_scale
      
    • time_scale

      public static double time_scale(MemorySegment struct)
      Getter for field:
      double time_scale
      
    • time_scale

      public static void time_scale(MemorySegment struct, double fieldValue)
      Setter for field:
      double time_scale
      
    • fps$layout

      public static final ValueLayout.OfDouble fps$layout()
      Layout for field:
      double fps
      
    • fps$offset

      public static final long fps$offset()
      Offset for field:
      double fps
      
    • fps

      public static double fps(MemorySegment struct)
      Getter for field:
      double fps
      
    • fps

      public static void fps(MemorySegment struct, double fieldValue)
      Setter for field:
      double fps
      
    • frame_time_total$layout

      public static final ValueLayout.OfDouble frame_time_total$layout()
      Layout for field:
      double frame_time_total
      
    • frame_time_total$offset

      public static final long frame_time_total$offset()
      Offset for field:
      double frame_time_total
      
    • frame_time_total

      public static double frame_time_total(MemorySegment struct)
      Getter for field:
      double frame_time_total
      
    • frame_time_total

      public static void frame_time_total(MemorySegment struct, double fieldValue)
      Setter for field:
      double frame_time_total
      
    • system_time_total$layout

      public static final ValueLayout.OfDouble system_time_total$layout()
      Layout for field:
      double system_time_total
      
    • system_time_total$offset

      public static final long system_time_total$offset()
      Offset for field:
      double system_time_total
      
    • system_time_total

      public static double system_time_total(MemorySegment struct)
      Getter for field:
      double system_time_total
      
    • system_time_total

      public static void system_time_total(MemorySegment struct, double fieldValue)
      Setter for field:
      double system_time_total
      
    • merge_time_total$layout

      public static final ValueLayout.OfDouble merge_time_total$layout()
      Layout for field:
      double merge_time_total
      
    • merge_time_total$offset

      public static final long merge_time_total$offset()
      Offset for field:
      double merge_time_total
      
    • merge_time_total

      public static double merge_time_total(MemorySegment struct)
      Getter for field:
      double merge_time_total
      
    • merge_time_total

      public static void merge_time_total(MemorySegment struct, double fieldValue)
      Setter for field:
      double merge_time_total
      
    • entity_count$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final ValueLayout.OfDouble frame_time_frame$layout()
      Layout for field:
      double frame_time_frame
      
    • frame_time_frame$offset

      public static final long frame_time_frame$offset()
      Offset for field:
      double frame_time_frame
      
    • frame_time_frame

      public static double frame_time_frame(MemorySegment struct)
      Getter for field:
      double frame_time_frame
      
    • frame_time_frame

      public static void frame_time_frame(MemorySegment struct, double fieldValue)
      Setter for field:
      double frame_time_frame
      
    • system_time_frame$layout

      public static final ValueLayout.OfDouble system_time_frame$layout()
      Layout for field:
      double system_time_frame
      
    • system_time_frame$offset

      public static final long system_time_frame$offset()
      Offset for field:
      double system_time_frame
      
    • system_time_frame

      public static double system_time_frame(MemorySegment struct)
      Getter for field:
      double system_time_frame
      
    • system_time_frame

      public static void system_time_frame(MemorySegment struct, double fieldValue)
      Setter for field:
      double system_time_frame
      
    • merge_time_frame$layout

      public static final ValueLayout.OfDouble merge_time_frame$layout()
      Layout for field:
      double merge_time_frame
      
    • merge_time_frame$offset

      public static final long merge_time_frame$offset()
      Offset for field:
      double merge_time_frame
      
    • merge_time_frame

      public static double merge_time_frame(MemorySegment struct)
      Getter for field:
      double merge_time_frame
      
    • merge_time_frame

      public static void merge_time_frame(MemorySegment struct, double fieldValue)
      Setter for field:
      double merge_time_frame
      
    • merge_count_frame$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final ValueLayout.OfDouble simulation_time$layout()
      Layout for field:
      double simulation_time
      
    • simulation_time$offset

      public static final long simulation_time$offset()
      Offset for field:
      double simulation_time
      
    • simulation_time

      public static double simulation_time(MemorySegment struct)
      Getter for field:
      double simulation_time
      
    • simulation_time

      public static void simulation_time(MemorySegment struct, double fieldValue)
      Setter for field:
      double simulation_time
      
    • uptime$layout

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

      public static final long uptime$offset()
      Offset for field:
      uint32_t uptime
      
    • uptime

      public static int uptime(MemorySegment struct)
      Getter for field:
      uint32_t uptime
      
    • uptime

      public static void uptime(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t uptime
      
    • build_info$layout

      public static final GroupLayout build_info$layout()
      Layout for field:
      ecs_build_info_t build_info
      
    • build_info$offset

      public static final long build_info$offset()
      Offset for field:
      ecs_build_info_t build_info
      
    • build_info

      public static MemorySegment build_info(MemorySegment struct)
      Getter for field:
      ecs_build_info_t build_info
      
    • build_info

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