Class ecs_entities_t
java.lang.Object
com.github.elebras1.flecs.ecs_entities_t
struct ecs_entities_t {
const ecs_entity_t *ids;
int32_t count;
int32_t alive_count;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic intalive_count(MemorySegment struct) Getter for field:int32_t alive_countstatic voidalive_count(MemorySegment struct, int fieldValue) Setter for field:int32_t alive_countstatic final ValueLayout.OfIntLayout for field:int32_t alive_countstatic final longOffset for field:int32_t alive_countstatic 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 intcount(MemorySegment struct) Getter for field:int32_t countstatic voidcount(MemorySegment struct, int fieldValue) Setter for field:int32_t countstatic final ValueLayout.OfIntLayout for field:int32_t countstatic final longOffset for field:int32_t countstatic MemorySegmentids(MemorySegment struct) Getter for field:const ecs_entity_t *idsstatic voidids(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_entity_t *idsstatic final AddressLayoutLayout for field:const ecs_entity_t *idsstatic final longOffset for field:const ecs_entity_t *idsstatic final GroupLayoutlayout()The layout of this structstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
ids$layout
Layout for field:const ecs_entity_t *ids -
ids$offset
public static final long ids$offset()Offset for field:const ecs_entity_t *ids -
ids
Getter for field:const ecs_entity_t *ids -
ids
Setter for field:const ecs_entity_t *ids -
count$layout
Layout for field:int32_t count -
count$offset
public static final long count$offset()Offset for field:int32_t count -
count
Getter for field:int32_t count -
count
Setter for field:int32_t count -
alive_count$layout
Layout for field:int32_t alive_count -
alive_count$offset
public static final long alive_count$offset()Offset for field:int32_t alive_count -
alive_count
Getter for field:int32_t alive_count -
alive_count
Setter for field:int32_t alive_count -
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()
-