Class ecs_entity_range_t
java.lang.Object
io.github.elebras1.flecs.ecs_entity_range_t
struct ecs_entity_range_t {
uint32_t min;
uint32_t max;
uint32_t cur;
ecs_vec_t recycled;
}
-
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 intcur(MemorySegment struct) Getter for field:uint32_t curstatic voidcur(MemorySegment struct, int fieldValue) Setter for field:uint32_t curstatic final ValueLayout.OfIntLayout for field:uint32_t curstatic final longOffset for field:uint32_t curstatic final GroupLayoutlayout()The layout of this structstatic intmax(MemorySegment struct) Getter for field:uint32_t maxstatic voidmax(MemorySegment struct, int fieldValue) Setter for field:uint32_t maxstatic final ValueLayout.OfIntLayout for field:uint32_t maxstatic final longOffset for field:uint32_t maxstatic intmin(MemorySegment struct) Getter for field:uint32_t minstatic voidmin(MemorySegment struct, int fieldValue) Setter for field:uint32_t minstatic final ValueLayout.OfIntLayout for field:uint32_t minstatic final longOffset for field:uint32_t minstatic MemorySegmentrecycled(MemorySegment struct) Getter for field:ecs_vec_t recycledstatic voidrecycled(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_vec_t recycledstatic final GroupLayoutLayout for field:ecs_vec_t recycledstatic final longOffset for field:ecs_vec_t recycledstatic 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 -
min$layout
Layout for field:uint32_t min -
min$offset
public static final long min$offset()Offset for field:uint32_t min -
min
Getter for field:uint32_t min -
min
Setter for field:uint32_t min -
max$layout
Layout for field:uint32_t max -
max$offset
public static final long max$offset()Offset for field:uint32_t max -
max
Getter for field:uint32_t max -
max
Setter for field:uint32_t max -
cur$layout
Layout for field:uint32_t cur -
cur$offset
public static final long cur$offset()Offset for field:uint32_t cur -
cur
Getter for field:uint32_t cur -
cur
Setter for field:uint32_t cur -
recycled$layout
Layout for field:ecs_vec_t recycled -
recycled$offset
public static final long recycled$offset()Offset for field:ecs_vec_t recycled -
recycled
Getter for field:ecs_vec_t recycled -
recycled
Setter for field:ecs_vec_t recycled -
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()
-