Class ecs_component_index_memory_t

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

public class ecs_component_index_memory_t extends Object
struct {
    int32_t count;
    ecs_size_t bytes_component_record;
    ecs_size_t bytes_table_cache;
    ecs_size_t bytes_name_index;
    ecs_size_t bytes_ordered_children;
    ecs_size_t bytes_reachable_cache;
}
  • Method Details

    • layout

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

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

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

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

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

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

      public static final long bytes_component_record$offset()
      Offset for field:
      ecs_size_t bytes_component_record
      
    • bytes_component_record

      public static int bytes_component_record(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_component_record
      
    • bytes_component_record

      public static void bytes_component_record(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_component_record
      
    • bytes_table_cache$layout

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

      public static final long bytes_table_cache$offset()
      Offset for field:
      ecs_size_t bytes_table_cache
      
    • bytes_table_cache

      public static int bytes_table_cache(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_table_cache
      
    • bytes_table_cache

      public static void bytes_table_cache(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_table_cache
      
    • bytes_name_index$layout

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

      public static final long bytes_name_index$offset()
      Offset for field:
      ecs_size_t bytes_name_index
      
    • bytes_name_index

      public static int bytes_name_index(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_name_index
      
    • bytes_name_index

      public static void bytes_name_index(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_name_index
      
    • bytes_ordered_children$layout

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

      public static final long bytes_ordered_children$offset()
      Offset for field:
      ecs_size_t bytes_ordered_children
      
    • bytes_ordered_children

      public static int bytes_ordered_children(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_ordered_children
      
    • bytes_ordered_children

      public static void bytes_ordered_children(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_ordered_children
      
    • bytes_reachable_cache$layout

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

      public static final long bytes_reachable_cache$offset()
      Offset for field:
      ecs_size_t bytes_reachable_cache
      
    • bytes_reachable_cache

      public static int bytes_reachable_cache(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_reachable_cache
      
    • bytes_reachable_cache

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