Class ecs_commands_t
java.lang.Object
com.github.elebras1.flecs.ecs_commands_t
struct ecs_commands_t {
ecs_vec_t queue;
ecs_stack_t stack;
ecs_sparse_t entries;
}
-
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 MemorySegmententries(MemorySegment struct) Getter for field:ecs_sparse_t entriesstatic voidentries(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_sparse_t entriesstatic final GroupLayoutLayout for field:ecs_sparse_t entriesstatic final longOffset for field:ecs_sparse_t entriesstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentqueue(MemorySegment struct) Getter for field:ecs_vec_t queuestatic voidqueue(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_vec_t queuestatic final GroupLayoutLayout for field:ecs_vec_t queuestatic final longOffset for field:ecs_vec_t queuestatic 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 MemorySegmentstack(MemorySegment struct) Getter for field:ecs_stack_t stackstatic voidstack(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stack_t stackstatic final GroupLayoutLayout for field:ecs_stack_t stackstatic final longOffset for field:ecs_stack_t stack
-
Method Details
-
layout
The layout of this struct -
queue$layout
Layout for field:ecs_vec_t queue -
queue$offset
public static final long queue$offset()Offset for field:ecs_vec_t queue -
queue
Getter for field:ecs_vec_t queue -
queue
Setter for field:ecs_vec_t queue -
stack$layout
Layout for field:ecs_stack_t stack -
stack$offset
public static final long stack$offset()Offset for field:ecs_stack_t stack -
stack
Getter for field:ecs_stack_t stack -
stack
Setter for field:ecs_stack_t stack -
entries$layout
Layout for field:ecs_sparse_t entries -
entries$offset
public static final long entries$offset()Offset for field:ecs_sparse_t entries -
entries
Getter for field:ecs_sparse_t entries -
entries
Setter for field:ecs_sparse_t entries -
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()
-