Class ecs_expr_eval_desc_t

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

public class ecs_expr_eval_desc_t extends Object
struct ecs_expr_eval_desc_t {
    const char *name;
    const char *expr;
    const ecs_script_vars_t *vars;
    ecs_entity_t type;
    ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *);
    void *lookup_ctx;
    _Bool disable_folding;
    _Bool disable_dynamic_variable_binding;
    _Bool allow_unresolved_identifiers;
    ecs_script_runtime_t *runtime;
    void *script_visitor;
}
  • Method Details

    • layout

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

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

      public static final long name$offset()
      Offset for field:
      const char *name
      
    • name

      public static MemorySegment name(MemorySegment struct)
      Getter for field:
      const char *name
      
    • name

      public static void name(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *name
      
    • expr$layout

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

      public static final long expr$offset()
      Offset for field:
      const char *expr
      
    • expr

      public static MemorySegment expr(MemorySegment struct)
      Getter for field:
      const char *expr
      
    • expr

      public static void expr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *expr
      
    • vars$layout

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

      public static final long vars$offset()
      Offset for field:
      const ecs_script_vars_t *vars
      
    • vars

      public static MemorySegment vars(MemorySegment struct)
      Getter for field:
      const ecs_script_vars_t *vars
      
    • vars

      public static void vars(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_script_vars_t *vars
      
    • type$layout

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

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

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

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

      public static final AddressLayout lookup_action$layout()
      Layout for field:
      ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)
      
    • lookup_action$offset

      public static final long lookup_action$offset()
      Offset for field:
      ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)
      
    • lookup_action

      public static MemorySegment lookup_action(MemorySegment struct)
      Getter for field:
      ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)
      
    • lookup_action

      public static void lookup_action(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entity_t (*lookup_action)(const ecs_world_t *, const char *, void *)
      
    • lookup_ctx$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final AddressLayout runtime$layout()
      Layout for field:
      ecs_script_runtime_t *runtime
      
    • runtime$offset

      public static final long runtime$offset()
      Offset for field:
      ecs_script_runtime_t *runtime
      
    • runtime

      public static MemorySegment runtime(MemorySegment struct)
      Getter for field:
      ecs_script_runtime_t *runtime
      
    • runtime

      public static void runtime(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_script_runtime_t *runtime
      
    • script_visitor$layout

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

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

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

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