Class ecs_tree_spawner_child_t
java.lang.Object
io.github.elebras1.flecs.ecs_tree_spawner_child_t
struct {
const char *child_name;
ecs_table_t *table;
uint32_t child;
int32_t parent_index;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 intchild(MemorySegment struct) Getter for field:uint32_t childstatic voidchild(MemorySegment struct, int fieldValue) Setter for field:uint32_t childstatic MemorySegmentchild_name(MemorySegment struct) Getter for field:const char *child_namestatic voidchild_name(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *child_namestatic final AddressLayoutLayout for field:const char *child_namestatic final longOffset for field:const char *child_namestatic final ValueLayout.OfIntLayout for field:uint32_t childstatic final longOffset for field:uint32_t childstatic final GroupLayoutlayout()The layout of this structstatic intparent_index(MemorySegment struct) Getter for field:int32_t parent_indexstatic voidparent_index(MemorySegment struct, int fieldValue) Setter for field:int32_t parent_indexstatic final ValueLayout.OfIntLayout for field:int32_t parent_indexstatic final longOffset for field:int32_t parent_indexstatic 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 longsizeof()The size (in bytes) of this structstatic MemorySegmenttable(MemorySegment struct) Getter for field:ecs_table_t *tablestatic voidtable(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_table_t *tablestatic final AddressLayoutLayout for field:ecs_table_t *tablestatic final longOffset for field:ecs_table_t *table
-
Method Details
-
layout
The layout of this struct -
child_name$layout
Layout for field:const char *child_name -
child_name$offset
public static final long child_name$offset()Offset for field:const char *child_name -
child_name
Getter for field:const char *child_name -
child_name
Setter for field:const char *child_name -
table$layout
Layout for field:ecs_table_t *table -
table$offset
public static final long table$offset()Offset for field:ecs_table_t *table -
table
Getter for field:ecs_table_t *table -
table
Setter for field:ecs_table_t *table -
child$layout
Layout for field:uint32_t child -
child$offset
public static final long child$offset()Offset for field:uint32_t child -
child
Getter for field:uint32_t child -
child
Setter for field:uint32_t child -
parent_index$layout
Layout for field:int32_t parent_index -
parent_index$offset
public static final long parent_index$offset()Offset for field:int32_t parent_index -
parent_index
Getter for field:int32_t parent_index -
parent_index
Setter for field:int32_t parent_index -
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()
-