Class EcsWorldMemory

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

public class EcsWorldMemory extends Object
struct {
    ecs_entities_memory_t entities;
    ecs_component_memory_t components;
    ecs_component_index_memory_t component_index;
    ecs_query_memory_t queries;
    ecs_table_memory_t tables;
    ecs_table_histogram_t table_histogram;
    ecs_misc_memory_t misc;
    ecs_allocator_memory_t allocators;
    double collection_time;
}
  • Method Details

    • layout

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

      public static final GroupLayout entities$layout()
      Layout for field:
      ecs_entities_memory_t entities
      
    • entities$offset

      public static final long entities$offset()
      Offset for field:
      ecs_entities_memory_t entities
      
    • entities

      public static MemorySegment entities(MemorySegment struct)
      Getter for field:
      ecs_entities_memory_t entities
      
    • entities

      public static void entities(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entities_memory_t entities
      
    • components$layout

      public static final GroupLayout components$layout()
      Layout for field:
      ecs_component_memory_t components
      
    • components$offset

      public static final long components$offset()
      Offset for field:
      ecs_component_memory_t components
      
    • components

      public static MemorySegment components(MemorySegment struct)
      Getter for field:
      ecs_component_memory_t components
      
    • components

      public static void components(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_component_memory_t components
      
    • component_index$layout

      public static final GroupLayout component_index$layout()
      Layout for field:
      ecs_component_index_memory_t component_index
      
    • component_index$offset

      public static final long component_index$offset()
      Offset for field:
      ecs_component_index_memory_t component_index
      
    • component_index

      public static MemorySegment component_index(MemorySegment struct)
      Getter for field:
      ecs_component_index_memory_t component_index
      
    • component_index

      public static void component_index(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_component_index_memory_t component_index
      
    • queries$layout

      public static final GroupLayout queries$layout()
      Layout for field:
      ecs_query_memory_t queries
      
    • queries$offset

      public static final long queries$offset()
      Offset for field:
      ecs_query_memory_t queries
      
    • queries

      public static MemorySegment queries(MemorySegment struct)
      Getter for field:
      ecs_query_memory_t queries
      
    • queries

      public static void queries(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_memory_t queries
      
    • tables$layout

      public static final GroupLayout tables$layout()
      Layout for field:
      ecs_table_memory_t tables
      
    • tables$offset

      public static final long tables$offset()
      Offset for field:
      ecs_table_memory_t tables
      
    • tables

      public static MemorySegment tables(MemorySegment struct)
      Getter for field:
      ecs_table_memory_t tables
      
    • tables

      public static void tables(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_memory_t tables
      
    • table_histogram$layout

      public static final GroupLayout table_histogram$layout()
      Layout for field:
      ecs_table_histogram_t table_histogram
      
    • table_histogram$offset

      public static final long table_histogram$offset()
      Offset for field:
      ecs_table_histogram_t table_histogram
      
    • table_histogram

      public static MemorySegment table_histogram(MemorySegment struct)
      Getter for field:
      ecs_table_histogram_t table_histogram
      
    • table_histogram

      public static void table_histogram(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_histogram_t table_histogram
      
    • misc$layout

      public static final GroupLayout misc$layout()
      Layout for field:
      ecs_misc_memory_t misc
      
    • misc$offset

      public static final long misc$offset()
      Offset for field:
      ecs_misc_memory_t misc
      
    • misc

      public static MemorySegment misc(MemorySegment struct)
      Getter for field:
      ecs_misc_memory_t misc
      
    • misc

      public static void misc(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_misc_memory_t misc
      
    • allocators$layout

      public static final GroupLayout allocators$layout()
      Layout for field:
      ecs_allocator_memory_t allocators
      
    • allocators$offset

      public static final long allocators$offset()
      Offset for field:
      ecs_allocator_memory_t allocators
      
    • allocators

      public static MemorySegment allocators(MemorySegment struct)
      Getter for field:
      ecs_allocator_memory_t allocators
      
    • allocators

      public static void allocators(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_allocator_memory_t allocators
      
    • collection_time$layout

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

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

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

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