Class ecs_world_stats_t.components

java.lang.Object
com.github.elebras1.flecs.ecs_world_stats_t.components
Enclosing class:
ecs_world_stats_t

public static class ecs_world_stats_t.components extends Object
struct {
    ecs_metric_t tag_count;
    ecs_metric_t component_count;
    ecs_metric_t pair_count;
    ecs_metric_t type_count;
    ecs_metric_t create_count;
    ecs_metric_t delete_count;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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