Class ecs_event_desc_t

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

public class ecs_event_desc_t extends Object
struct ecs_event_desc_t {
    ecs_entity_t event;
    const ecs_type_t *ids;
    ecs_table_t *table;
    ecs_table_t *other_table;
    int32_t offset;
    int32_t count;
    ecs_entity_t entity;
    void *param;
    const void *const_param;
    ecs_poly_t *observable;
    ecs_flags32_t flags;
}
  • Method Details

    • layout

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

      public static final ValueLayout.OfLong event$layout()
      Layout for field:
      ecs_entity_t event
      
    • event$offset

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

      public static long event(MemorySegment struct)
      Getter for field:
      ecs_entity_t event
      
    • event

      public static void event(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t event
      
    • ids$layout

      public static final AddressLayout ids$layout()
      Layout for field:
      const ecs_type_t *ids
      
    • ids$offset

      public static final long ids$offset()
      Offset for field:
      const ecs_type_t *ids
      
    • ids

      public static MemorySegment ids(MemorySegment struct)
      Getter for field:
      const ecs_type_t *ids
      
    • ids

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

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

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

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

      public static void other_table(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_t *other_table
      
    • offset$layout

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

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

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

      public static void offset(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t offset
      
    • 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
      
    • entity$layout

      public static final ValueLayout.OfLong entity$layout()
      Layout for field:
      ecs_entity_t entity
      
    • entity$offset

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

      public static long entity(MemorySegment struct)
      Getter for field:
      ecs_entity_t entity
      
    • entity

      public static void entity(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t entity
      
    • param$layout

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

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

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

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

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

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

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

      public static void const_param(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const void *const_param
      
    • observable$layout

      public static final AddressLayout observable$layout()
      Layout for field:
      ecs_poly_t *observable
      
    • observable$offset

      public static final long observable$offset()
      Offset for field:
      ecs_poly_t *observable
      
    • observable

      public static MemorySegment observable(MemorySegment struct)
      Getter for field:
      ecs_poly_t *observable
      
    • observable

      public static void observable(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_poly_t *observable
      
    • flags$layout

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

      public static final long flags$offset()
      Offset for field:
      ecs_flags32_t flags
      
    • flags

      public static int flags(MemorySegment struct)
      Getter for field:
      ecs_flags32_t flags
      
    • flags

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