Class ecs_cpp_component_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_cpp_component_desc_t
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 Summary
Modifier and TypeMethodDescriptionstatic longalignment(MemorySegment struct) Getter for field:size_t alignmentstatic voidalignment(MemorySegment struct, long fieldValue) Setter for field:size_t alignmentstatic final ValueLayout.OfLongLayout for field:size_t alignmentstatic final longOffset for field:size_t alignmentstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcpp_name(MemorySegment struct) Getter for field:const char *cpp_namestatic voidcpp_name(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *cpp_namestatic final AddressLayoutLayout for field:const char *cpp_namestatic final longOffset for field:const char *cpp_namestatic MemorySegmentcpp_symbol(MemorySegment struct) Getter for field:const char *cpp_symbolstatic voidcpp_symbol(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *cpp_symbolstatic final AddressLayoutLayout for field:const char *cpp_symbolstatic final longOffset for field:const char *cpp_symbolstatic MemorySegmentenum_action(MemorySegment struct) Getter for field:ecs_cpp_type_action_t enum_actionstatic voidenum_action(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_cpp_type_action_t enum_actionstatic final AddressLayoutLayout for field:ecs_cpp_type_action_t enum_actionstatic final longOffset for field:ecs_cpp_type_action_t enum_actionstatic booleanexplicit_registration(MemorySegment struct) Getter for field:_Bool explicit_registrationstatic voidexplicit_registration(MemorySegment struct, boolean fieldValue) Setter for field:_Bool explicit_registrationstatic final ValueLayout.OfBooleanLayout for field:_Bool explicit_registrationstatic final longOffset for field:_Bool explicit_registrationstatic longid(MemorySegment struct) Getter for field:ecs_entity_t idstatic voidid(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t idstatic final ValueLayout.OfLongLayout for field:ecs_entity_t idstatic final longOffset for field:ecs_entity_t idstatic intids_index(MemorySegment struct) Getter for field:int32_t ids_indexstatic voidids_index(MemorySegment struct, int fieldValue) Setter for field:int32_t ids_indexstatic final ValueLayout.OfIntLayout for field:int32_t ids_indexstatic final longOffset for field:int32_t ids_indexstatic booleanis_component(MemorySegment struct) Getter for field:_Bool is_componentstatic voidis_component(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_componentstatic final ValueLayout.OfBooleanLayout for field:_Bool is_componentstatic final longOffset for field:_Bool is_componentstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentlifecycle_action(MemorySegment struct) Getter for field:ecs_cpp_type_action_t lifecycle_actionstatic voidlifecycle_action(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_cpp_type_action_t lifecycle_actionstatic final AddressLayoutLayout for field:ecs_cpp_type_action_t lifecycle_actionstatic final longOffset for field:ecs_cpp_type_action_t lifecycle_actionstatic MemorySegmentname(MemorySegment struct) Getter for field:const char *namestatic voidname(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *namestatic final AddressLayoutLayout for field:const char *namestatic final longOffset for field:const char *namestatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsize(MemorySegment struct) Getter for field:size_t sizestatic voidsize(MemorySegment struct, long fieldValue) Setter for field:size_t sizestatic final ValueLayout.OfLongLayout for field:size_t sizestatic final longOffset for field:size_t sizestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
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
Getter for field:ecs_entity_t id -
id
Setter for field:ecs_entity_t id -
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
Getter for field:int32_t ids_index -
ids_index
Setter for field:int32_t ids_index -
name$layout
Layout for field:const char *name -
name$offset
public static final long name$offset()Offset for field:const char *name -
name
Getter for field:const char *name -
name
Setter for field:const char *name -
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
Getter for field:const char *cpp_name -
cpp_name
Setter for field:const char *cpp_name -
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
Getter for field:const char *cpp_symbol -
cpp_symbol
Setter for field:const char *cpp_symbol -
size$layout
Layout for field:size_t size -
size$offset
public static final long size$offset()Offset for field:size_t size -
size
Getter for field:size_t size -
size
Setter for field:size_t size -
alignment$layout
Layout for field:size_t alignment -
alignment$offset
public static final long alignment$offset()Offset for field:size_t alignment -
alignment
Getter for field:size_t alignment -
alignment
Setter for field:size_t alignment -
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
Getter for field:ecs_cpp_type_action_t lifecycle_action -
lifecycle_action
Setter for field:ecs_cpp_type_action_t lifecycle_action -
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
Getter for field:ecs_cpp_type_action_t enum_action -
enum_action
Setter for field:ecs_cpp_type_action_t enum_action -
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
Getter for field:_Bool is_component -
is_component
Setter for field:_Bool is_component -
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
Getter for field:_Bool explicit_registration -
explicit_registration
Setter for field:_Bool explicit_registration -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-