Class ecs_component_memory_t

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

public class ecs_component_memory_t extends Object
struct {
    int32_t instances;
    ecs_size_t bytes_table_components;
    ecs_size_t bytes_table_components_unused;
    ecs_size_t bytes_toggle_bitsets;
    ecs_size_t bytes_sparse_components;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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