Class ecs_entity_desc_t

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

public class ecs_entity_desc_t extends Object
struct ecs_entity_desc_t {
    int32_t _canary;
    ecs_entity_t id;
    ecs_entity_t parent;
    const char *name;
    const char *sep;
    const char *root_sep;
    const char *symbol;
    _Bool use_low_id;
    const ecs_id_t *add;
    const ecs_value_t *set;
    const char *add_expr;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

      public static void parent(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t parent
      
    • 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
      
    • sep$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final long add$offset()
      Offset for field:
      const ecs_id_t *add
      
    • add

      public static MemorySegment add(MemorySegment struct)
      Getter for field:
      const ecs_id_t *add
      
    • add

      public static void add(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_id_t *add
      
    • set$layout

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

      public static final long set$offset()
      Offset for field:
      const ecs_value_t *set
      
    • set

      public static MemorySegment set(MemorySegment struct)
      Getter for field:
      const ecs_value_t *set
      
    • set

      public static void set(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_value_t *set
      
    • add_expr$layout

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

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

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

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