Class ecs_table_cache_iter_t
java.lang.Object
com.github.elebras1.flecs.ecs_table_cache_iter_t
struct ecs_table_cache_iter_t {
const struct ecs_table_cache_hdr_t *cur, *next;
_Bool iter_fill;
_Bool iter_empty;
}
-
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 MemorySegmentcur(MemorySegment struct) Getter for field:const struct ecs_table_cache_hdr_t *curstatic voidcur(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct ecs_table_cache_hdr_t *curstatic final AddressLayoutLayout for field:const struct ecs_table_cache_hdr_t *curstatic final longOffset for field:const struct ecs_table_cache_hdr_t *curstatic booleaniter_empty(MemorySegment struct) Getter for field:_Bool iter_emptystatic voiditer_empty(MemorySegment struct, boolean fieldValue) Setter for field:_Bool iter_emptystatic final ValueLayout.OfBooleanLayout for field:_Bool iter_emptystatic final longOffset for field:_Bool iter_emptystatic booleaniter_fill(MemorySegment struct) Getter for field:_Bool iter_fillstatic voiditer_fill(MemorySegment struct, boolean fieldValue) Setter for field:_Bool iter_fillstatic final ValueLayout.OfBooleanLayout for field:_Bool iter_fillstatic final longOffset for field:_Bool iter_fillstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentnext(MemorySegment struct) Getter for field:const struct ecs_table_cache_hdr_t *nextstatic voidnext(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct ecs_table_cache_hdr_t *nextstatic final AddressLayoutLayout for field:const struct ecs_table_cache_hdr_t *nextstatic final longOffset for field:const struct ecs_table_cache_hdr_t *nextstatic 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 -
cur$layout
Layout for field:const struct ecs_table_cache_hdr_t *cur -
cur$offset
public static final long cur$offset()Offset for field:const struct ecs_table_cache_hdr_t *cur -
cur
Getter for field:const struct ecs_table_cache_hdr_t *cur -
cur
Setter for field:const struct ecs_table_cache_hdr_t *cur -
next$layout
Layout for field:const struct ecs_table_cache_hdr_t *next -
next$offset
public static final long next$offset()Offset for field:const struct ecs_table_cache_hdr_t *next -
next
Getter for field:const struct ecs_table_cache_hdr_t *next -
next
Setter for field:const struct ecs_table_cache_hdr_t *next -
iter_fill$layout
Layout for field:_Bool iter_fill -
iter_fill$offset
public static final long iter_fill$offset()Offset for field:_Bool iter_fill -
iter_fill
Getter for field:_Bool iter_fill -
iter_fill
Setter for field:_Bool iter_fill -
iter_empty$layout
Layout for field:_Bool iter_empty -
iter_empty$offset
public static final long iter_empty$offset()Offset for field:_Bool iter_empty -
iter_empty
Getter for field:_Bool iter_empty -
iter_empty
Setter for field:_Bool iter_empty -
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()
-