Class ecs_cpp_component_desc_t

java.lang.Object
io.github.elebras1.flecs.ecs_cpp_component_desc_t

public class ecs_cpp_component_desc_t extends Object
struct ecs_cpp_component_desc_t {
    ecs_entity_t id;
    int32_t ids_index;
    const char *name;
    const char *cpp_name;
    const char *cpp_symbol;
    size_t size;
    size_t alignment;
    ecs_cpp_type_action_t lifecycle_action;
    ecs_cpp_type_action_t enum_action;
    _Bool is_component;
    _Bool explicit_registration;
}
  • 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_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
      
    • ids_index$layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long size(MemorySegment struct)
      Getter for field:
      size_t size
      
    • size

      public static void size(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t size
      
    • alignment$layout

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

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

      public static long alignment(MemorySegment struct)
      Getter for field:
      size_t alignment
      
    • alignment

      public static void alignment(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t alignment
      
    • lifecycle_action$layout

      public static final AddressLayout lifecycle_action$layout()
      Layout for field:
      ecs_cpp_type_action_t lifecycle_action
      
    • lifecycle_action$offset

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

      public static MemorySegment lifecycle_action(MemorySegment struct)
      Getter for field:
      ecs_cpp_type_action_t lifecycle_action
      
    • lifecycle_action

      public static void lifecycle_action(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_cpp_type_action_t lifecycle_action
      
    • enum_action$layout

      public static final AddressLayout enum_action$layout()
      Layout for field:
      ecs_cpp_type_action_t enum_action
      
    • enum_action$offset

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

      public static MemorySegment enum_action(MemorySegment struct)
      Getter for field:
      ecs_cpp_type_action_t enum_action
      
    • enum_action

      public static void enum_action(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_cpp_type_action_t enum_action
      
    • is_component$layout

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

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

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

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

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

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

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

      public static void explicit_registration(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool explicit_registration
      
    • 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()