Class ecs_bulk_desc_t

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

public class ecs_bulk_desc_t extends Object
struct ecs_bulk_desc_t {
    int32_t _canary;
    ecs_entity_t *entities;
    int32_t count;
    ecs_id_t ids[32];
    void **data;
    ecs_table_t *table;
}
  • Method Details

    • layout

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

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

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

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

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

      public static final AddressLayout entities$layout()
      Layout for field:
      ecs_entity_t *entities
      
    • entities$offset

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

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

      public static void entities(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entity_t *entities
      
    • 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
      
    • ids$layout

      public static final SequenceLayout ids$layout()
      Layout for field:
      ecs_id_t ids[32]
      
    • ids$offset

      public static final long ids$offset()
      Offset for field:
      ecs_id_t ids[32]
      
    • ids

      public static MemorySegment ids(MemorySegment struct)
      Getter for field:
      ecs_id_t ids[32]
      
    • ids

      public static void ids(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_id_t ids[32]
      
    • ids$dimensions

      public static long[] ids$dimensions()
      Dimensions for array field:
      ecs_id_t ids[32]
      
    • ids

      public static long ids(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_id_t ids[32]
      
    • ids

      public static void ids(MemorySegment struct, long index0, long fieldValue)
      Indexed setter for field:
      ecs_id_t ids[32]
      
    • data$layout

      public static final AddressLayout data$layout()
      Layout for field:
      void **data
      
    • data$offset

      public static final long data$offset()
      Offset for field:
      void **data
      
    • data

      public static MemorySegment data(MemorySegment struct)
      Getter for field:
      void **data
      
    • data

      public static void data(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void **data
      
    • table$layout

      public static final AddressLayout table$layout()
      Layout for field:
      ecs_table_t *table
      
    • table$offset

      public static final long table$offset()
      Offset for field:
      ecs_table_t *table
      
    • table

      public static MemorySegment table(MemorySegment struct)
      Getter for field:
      ecs_table_t *table
      
    • table

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