Class ecs_type_hooks_t

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

public class ecs_type_hooks_t extends Object
struct ecs_type_hooks_t {
    ecs_xtor_t ctor;
    ecs_xtor_t dtor;
    ecs_copy_t copy;
    ecs_move_t move;
    ecs_copy_t copy_ctor;
    ecs_move_t move_ctor;
    ecs_move_t ctor_move_dtor;
    ecs_move_t move_dtor;
    ecs_cmp_t cmp;
    ecs_equals_t equals;
    ecs_flags32_t flags;
    ecs_iter_action_t on_add;
    ecs_iter_action_t on_set;
    ecs_iter_action_t on_remove;
    ecs_iter_action_t on_replace;
    void *ctx;
    void *binding_ctx;
    void *lifecycle_ctx;
    ecs_ctx_free_t ctx_free;
    ecs_ctx_free_t binding_ctx_free;
    ecs_ctx_free_t lifecycle_ctx_free;
}
  • Method Details

    • layout

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

      public static final AddressLayout ctor$layout()
      Layout for field:
      ecs_xtor_t ctor
      
    • ctor$offset

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

      public static MemorySegment ctor(MemorySegment struct)
      Getter for field:
      ecs_xtor_t ctor
      
    • ctor

      public static void ctor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_xtor_t ctor
      
    • dtor$layout

      public static final AddressLayout dtor$layout()
      Layout for field:
      ecs_xtor_t dtor
      
    • dtor$offset

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

      public static MemorySegment dtor(MemorySegment struct)
      Getter for field:
      ecs_xtor_t dtor
      
    • dtor

      public static void dtor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_xtor_t dtor
      
    • copy$layout

      public static final AddressLayout copy$layout()
      Layout for field:
      ecs_copy_t copy
      
    • copy$offset

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

      public static MemorySegment copy(MemorySegment struct)
      Getter for field:
      ecs_copy_t copy
      
    • copy

      public static void copy(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_copy_t copy
      
    • move$layout

      public static final AddressLayout move$layout()
      Layout for field:
      ecs_move_t move
      
    • move$offset

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

      public static MemorySegment move(MemorySegment struct)
      Getter for field:
      ecs_move_t move
      
    • move

      public static void move(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_move_t move
      
    • copy_ctor$layout

      public static final AddressLayout copy_ctor$layout()
      Layout for field:
      ecs_copy_t copy_ctor
      
    • copy_ctor$offset

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

      public static MemorySegment copy_ctor(MemorySegment struct)
      Getter for field:
      ecs_copy_t copy_ctor
      
    • copy_ctor

      public static void copy_ctor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_copy_t copy_ctor
      
    • move_ctor$layout

      public static final AddressLayout move_ctor$layout()
      Layout for field:
      ecs_move_t move_ctor
      
    • move_ctor$offset

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

      public static MemorySegment move_ctor(MemorySegment struct)
      Getter for field:
      ecs_move_t move_ctor
      
    • move_ctor

      public static void move_ctor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_move_t move_ctor
      
    • ctor_move_dtor$layout

      public static final AddressLayout ctor_move_dtor$layout()
      Layout for field:
      ecs_move_t ctor_move_dtor
      
    • ctor_move_dtor$offset

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

      public static MemorySegment ctor_move_dtor(MemorySegment struct)
      Getter for field:
      ecs_move_t ctor_move_dtor
      
    • ctor_move_dtor

      public static void ctor_move_dtor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_move_t ctor_move_dtor
      
    • move_dtor$layout

      public static final AddressLayout move_dtor$layout()
      Layout for field:
      ecs_move_t move_dtor
      
    • move_dtor$offset

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

      public static MemorySegment move_dtor(MemorySegment struct)
      Getter for field:
      ecs_move_t move_dtor
      
    • move_dtor

      public static void move_dtor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_move_t move_dtor
      
    • cmp$layout

      public static final AddressLayout cmp$layout()
      Layout for field:
      ecs_cmp_t cmp
      
    • cmp$offset

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

      public static MemorySegment cmp(MemorySegment struct)
      Getter for field:
      ecs_cmp_t cmp
      
    • cmp

      public static void cmp(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_cmp_t cmp
      
    • equals$layout

      public static final AddressLayout equals$layout()
      Layout for field:
      ecs_equals_t equals
      
    • equals$offset

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

      public static MemorySegment equals(MemorySegment struct)
      Getter for field:
      ecs_equals_t equals
      
    • equals

      public static void equals(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_equals_t equals
      
    • 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
      
    • on_add$layout

      public static final AddressLayout on_add$layout()
      Layout for field:
      ecs_iter_action_t on_add
      
    • on_add$offset

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

      public static MemorySegment on_add(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t on_add
      
    • on_add

      public static void on_add(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t on_add
      
    • on_set$layout

      public static final AddressLayout on_set$layout()
      Layout for field:
      ecs_iter_action_t on_set
      
    • on_set$offset

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

      public static MemorySegment on_set(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t on_set
      
    • on_set

      public static void on_set(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t on_set
      
    • on_remove$layout

      public static final AddressLayout on_remove$layout()
      Layout for field:
      ecs_iter_action_t on_remove
      
    • on_remove$offset

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

      public static MemorySegment on_remove(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t on_remove
      
    • on_remove

      public static void on_remove(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t on_remove
      
    • on_replace$layout

      public static final AddressLayout on_replace$layout()
      Layout for field:
      ecs_iter_action_t on_replace
      
    • on_replace$offset

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

      public static MemorySegment on_replace(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t on_replace
      
    • on_replace

      public static void on_replace(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t on_replace
      
    • ctx$layout

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

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

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

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

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

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

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

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

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

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

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

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

      public static final AddressLayout ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free$offset

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

      public static MemorySegment ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free

      public static void ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t ctx_free
      
    • binding_ctx_free$layout

      public static final AddressLayout binding_ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t binding_ctx_free
      
    • binding_ctx_free$offset

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

      public static MemorySegment binding_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t binding_ctx_free
      
    • binding_ctx_free

      public static void binding_ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t binding_ctx_free
      
    • lifecycle_ctx_free$layout

      public static final AddressLayout lifecycle_ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t lifecycle_ctx_free
      
    • lifecycle_ctx_free$offset

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

      public static MemorySegment lifecycle_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t lifecycle_ctx_free
      
    • lifecycle_ctx_free

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