Class ecs_meta_scope_t

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

public class ecs_meta_scope_t extends Object
struct ecs_meta_scope_t {
    ecs_entity_t type;
    ecs_meta_op_t *ops;
    int16_t ops_count;
    int16_t ops_cur;
    int16_t prev_depth;
    void *ptr;
    const EcsOpaque *opaque;
    ecs_hashmap_t *members;
    _Bool is_collection;
    _Bool is_empty_scope;
    _Bool is_moved_scope;
    int32_t elem;
    int32_t elem_count;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • 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
      
    • ops$layout

      public static final AddressLayout ops$layout()
      Layout for field:
      ecs_meta_op_t *ops
      
    • ops$offset

      public static final long ops$offset()
      Offset for field:
      ecs_meta_op_t *ops
      
    • ops

      public static MemorySegment ops(MemorySegment struct)
      Getter for field:
      ecs_meta_op_t *ops
      
    • ops

      public static void ops(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_meta_op_t *ops
      
    • ops_count$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final long opaque$offset()
      Offset for field:
      const EcsOpaque *opaque
      
    • opaque

      public static MemorySegment opaque(MemorySegment struct)
      Getter for field:
      const EcsOpaque *opaque
      
    • opaque

      public static void opaque(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const EcsOpaque *opaque
      
    • members$layout

      public static final AddressLayout members$layout()
      Layout for field:
      ecs_hashmap_t *members
      
    • members$offset

      public static final long members$offset()
      Offset for field:
      ecs_hashmap_t *members
      
    • members

      public static MemorySegment members(MemorySegment struct)
      Getter for field:
      ecs_hashmap_t *members
      
    • members

      public static void members(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_hashmap_t *members
      
    • is_collection$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void elem(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t elem
      
    • elem_count$layout

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

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

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

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