Class ecs_term_t

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

public class ecs_term_t extends Object
struct ecs_term_t {
    ecs_id_t id;
    ecs_term_ref_t src;
    ecs_term_ref_t first;
    ecs_term_ref_t second;
    ecs_entity_t trav;
    int16_t inout;
    int16_t oper;
    int8_t field_index;
    ecs_flags16_t flags_;
}
  • Method Details

    • layout

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

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

      public static final long id$offset()
      Offset for field:
      ecs_id_t id
      
    • id

      public static long id(MemorySegment struct)
      Getter for field:
      ecs_id_t id
      
    • id

      public static void id(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_id_t id
      
    • src$layout

      public static final GroupLayout src$layout()
      Layout for field:
      ecs_term_ref_t src
      
    • src$offset

      public static final long src$offset()
      Offset for field:
      ecs_term_ref_t src
      
    • src

      public static MemorySegment src(MemorySegment struct)
      Getter for field:
      ecs_term_ref_t src
      
    • src

      public static void src(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_term_ref_t src
      
    • first$layout

      public static final GroupLayout first$layout()
      Layout for field:
      ecs_term_ref_t first
      
    • first$offset

      public static final long first$offset()
      Offset for field:
      ecs_term_ref_t first
      
    • first

      public static MemorySegment first(MemorySegment struct)
      Getter for field:
      ecs_term_ref_t first
      
    • first

      public static void first(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_term_ref_t first
      
    • second$layout

      public static final GroupLayout second$layout()
      Layout for field:
      ecs_term_ref_t second
      
    • second$offset

      public static final long second$offset()
      Offset for field:
      ecs_term_ref_t second
      
    • second

      public static MemorySegment second(MemorySegment struct)
      Getter for field:
      ecs_term_ref_t second
      
    • second

      public static void second(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_term_ref_t second
      
    • trav$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void field_index(MemorySegment struct, byte fieldValue)
      Setter for field:
      int8_t field_index
      
    • flags_$layout

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

      public static final long flags_$offset()
      Offset for field:
      ecs_flags16_t flags_
      
    • flags_

      public static short flags_(MemorySegment struct)
      Getter for field:
      ecs_flags16_t flags_
      
    • flags_

      public static void flags_(MemorySegment struct, short fieldValue)
      Setter for field:
      ecs_flags16_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()