Class ecs_meta_cursor_t

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

public class ecs_meta_cursor_t extends Object
struct ecs_meta_cursor_t {
    const ecs_world_t *world;
    ecs_meta_scope_t scope[32];
    int16_t depth;
    _Bool valid;
    _Bool is_primitive_scope;
    ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *);
    void *lookup_ctx;
}
  • Method Details

    • layout

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

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

      public static final long world$offset()
      Offset for field:
      const ecs_world_t *world
      
    • world

      public static MemorySegment world(MemorySegment struct)
      Getter for field:
      const ecs_world_t *world
      
    • world

      public static void world(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_world_t *world
      
    • scope$layout

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

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

      public static MemorySegment scope(MemorySegment struct)
      Getter for field:
      ecs_meta_scope_t scope[32]
      
    • scope

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

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

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

      public static void scope(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_meta_scope_t scope[32]
      
    • depth$layout

      public static final ValueLayout.OfShort depth$layout()
      Layout for field:
      int16_t depth
      
    • depth$offset

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

      public static short depth(MemorySegment struct)
      Getter for field:
      int16_t depth
      
    • depth

      public static void depth(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t depth
      
    • valid$layout

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

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

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

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

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

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

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

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

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

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

      public static MemorySegment lookup_action(MemorySegment struct)
      Getter for field:
      ecs_entity_t (*lookup_action)(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)(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
      
    • 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()