Class ecs_query_group_info_t
java.lang.Object
com.github.elebras1.flecs.ecs_query_group_info_t
struct ecs_query_group_info_t {
uint64_t id;
int32_t match_count;
int32_t table_count;
void *ctx;
}
-
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 MemorySegmentctx(MemorySegment struct) Getter for field:void *ctxstatic voidctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxstatic final AddressLayoutLayout for field:void *ctxstatic final longOffset for field:void *ctxstatic longid(MemorySegment struct) Getter for field:uint64_t idstatic voidid(MemorySegment struct, long fieldValue) Setter for field:uint64_t idstatic final ValueLayout.OfLongLayout for field:uint64_t idstatic final longOffset for field:uint64_t idstatic final GroupLayoutlayout()The layout of this structstatic intmatch_count(MemorySegment struct) Getter for field:int32_t match_countstatic voidmatch_count(MemorySegment struct, int fieldValue) Setter for field:int32_t match_countstatic final ValueLayout.OfIntLayout for field:int32_t match_countstatic final longOffset for field:int32_t match_countstatic 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 inttable_count(MemorySegment struct) Getter for field:int32_t table_countstatic voidtable_count(MemorySegment struct, int fieldValue) Setter for field:int32_t table_countstatic final ValueLayout.OfIntLayout for field:int32_t table_countstatic final longOffset for field:int32_t table_count
-
Method Details
-
layout
The layout of this struct -
id$layout
Layout for field:uint64_t id -
id$offset
public static final long id$offset()Offset for field:uint64_t id -
id
Getter for field:uint64_t id -
id
Setter for field:uint64_t id -
match_count$layout
Layout for field:int32_t match_count -
match_count$offset
public static final long match_count$offset()Offset for field:int32_t match_count -
match_count
Getter for field:int32_t match_count -
match_count
Setter for field:int32_t match_count -
table_count$layout
Layout for field:int32_t table_count -
table_count$offset
public static final long table_count$offset()Offset for field:int32_t table_count -
table_count
Getter for field:int32_t table_count -
table_count
Setter for field:int32_t table_count -
ctx$layout
Layout for field:void *ctx -
ctx$offset
public static final long ctx$offset()Offset for field:void *ctx -
ctx
Getter for field:void *ctx -
ctx
Setter for field:void *ctx -
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()
-