Class ecs_observer_desc_t

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

public class ecs_observer_desc_t extends Object
struct ecs_observer_desc_t {
    int32_t _canary;
    ecs_entity_t entity;
    ecs_query_desc_t query;
    ecs_entity_t events[8];
    _Bool yield_existing;
    ecs_iter_action_t callback;
    ecs_run_action_t run;
    void *ctx;
    ecs_ctx_free_t ctx_free;
    void *callback_ctx;
    ecs_ctx_free_t callback_ctx_free;
    void *run_ctx;
    ecs_ctx_free_t run_ctx_free;
    int32_t *last_event_id;
    int8_t term_index_;
    ecs_flags32_t flags_;
}
  • 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
      
    • 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
      
    • query$layout

      public static final GroupLayout query$layout()
      Layout for field:
      ecs_query_desc_t query
      
    • query$offset

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

      public static MemorySegment query(MemorySegment struct)
      Getter for field:
      ecs_query_desc_t query
      
    • query

      public static void query(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_desc_t query
      
    • events$layout

      public static final SequenceLayout events$layout()
      Layout for field:
      ecs_entity_t events[8]
      
    • events$offset

      public static final long events$offset()
      Offset for field:
      ecs_entity_t events[8]
      
    • events

      public static MemorySegment events(MemorySegment struct)
      Getter for field:
      ecs_entity_t events[8]
      
    • events

      public static void events(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entity_t events[8]
      
    • events$dimensions

      public static long[] events$dimensions()
      Dimensions for array field:
      ecs_entity_t events[8]
      
    • events

      public static long events(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_entity_t events[8]
      
    • events

      public static void events(MemorySegment struct, long index0, long fieldValue)
      Indexed setter for field:
      ecs_entity_t events[8]
      
    • yield_existing$layout

      public static final ValueLayout.OfBoolean yield_existing$layout()
      Layout for field:
      _Bool yield_existing
      
    • yield_existing$offset

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

      public static boolean yield_existing(MemorySegment struct)
      Getter for field:
      _Bool yield_existing
      
    • yield_existing

      public static void yield_existing(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool yield_existing
      
    • callback$layout

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

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

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

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

      public static final AddressLayout run$layout()
      Layout for field:
      ecs_run_action_t run
      
    • run$offset

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

      public static MemorySegment run(MemorySegment struct)
      Getter for field:
      ecs_run_action_t run
      
    • run

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final AddressLayout last_event_id$layout()
      Layout for field:
      int32_t *last_event_id
      
    • last_event_id$offset

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

      public static MemorySegment last_event_id(MemorySegment struct)
      Getter for field:
      int32_t *last_event_id
      
    • last_event_id

      public static void last_event_id(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      int32_t *last_event_id
      
    • term_index_$layout

      public static final ValueLayout.OfByte term_index_$layout()
      Layout for field:
      int8_t term_index_
      
    • term_index_$offset

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

      public static byte term_index_(MemorySegment struct)
      Getter for field:
      int8_t term_index_
      
    • term_index_

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