Class ecs_meta_op_t

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

public class ecs_meta_op_t extends Object
struct ecs_meta_op_t {
    ecs_meta_op_kind_t kind;
    ecs_meta_op_kind_t underlying_kind;
    ecs_size_t offset;
    const char *name;
    ecs_size_t elem_size;
    int16_t op_count;
    int16_t member_index;
    ecs_entity_t type;
    const ecs_type_info_t *type_info;
    union {
        ecs_hashmap_t *members;
        ecs_map_t *constants;
        ecs_meta_serialize_t opaque;
    } is;
}
  • Method Details

    • layout

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

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

      public static final long kind$offset()
      Offset for field:
      ecs_meta_op_kind_t kind
      
    • kind

      public static int kind(MemorySegment struct)
      Getter for field:
      ecs_meta_op_kind_t kind
      
    • kind

      public static void kind(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_meta_op_kind_t kind
      
    • underlying_kind$layout

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

      public static final long underlying_kind$offset()
      Offset for field:
      ecs_meta_op_kind_t underlying_kind
      
    • underlying_kind

      public static int underlying_kind(MemorySegment struct)
      Getter for field:
      ecs_meta_op_kind_t underlying_kind
      
    • underlying_kind

      public static void underlying_kind(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_meta_op_kind_t underlying_kind
      
    • offset$layout

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

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

      public static int offset(MemorySegment struct)
      Getter for field:
      ecs_size_t offset
      
    • offset

      public static void offset(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t offset
      
    • 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
      
    • elem_size$layout

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

      public static final long elem_size$offset()
      Offset for field:
      ecs_size_t elem_size
      
    • elem_size

      public static int elem_size(MemorySegment struct)
      Getter for field:
      ecs_size_t elem_size
      
    • elem_size

      public static void elem_size(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t elem_size
      
    • op_count$layout

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

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

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

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

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

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

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

      public static void member_index(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t member_index
      
    • 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
      
    • type_info$layout

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

      public static final long type_info$offset()
      Offset for field:
      const ecs_type_info_t *type_info
      
    • type_info

      public static MemorySegment type_info(MemorySegment struct)
      Getter for field:
      const ecs_type_info_t *type_info
      
    • type_info

      public static void type_info(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_type_info_t *type_info
      
    • is$layout

      public static final GroupLayout is$layout()
      Layout for field:
      union {
          ecs_hashmap_t *members;
          ecs_map_t *constants;
          ecs_meta_serialize_t opaque;
      } is
      
    • is$offset

      public static final long is$offset()
      Offset for field:
      union {
          ecs_hashmap_t *members;
          ecs_map_t *constants;
          ecs_meta_serialize_t opaque;
      } is
      
    • is

      public static MemorySegment is(MemorySegment struct)
      Getter for field:
      union {
          ecs_hashmap_t *members;
          ecs_map_t *constants;
          ecs_meta_serialize_t opaque;
      } is
      
    • is

      public static void is(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      union {
          ecs_hashmap_t *members;
          ecs_map_t *constants;
          ecs_meta_serialize_t opaque;
      } is
      
    • 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()