Class flecs_hashmap_iter_t
java.lang.Object
com.github.elebras1.flecs.flecs_hashmap_iter_t
struct {
ecs_map_iter_t it;
ecs_hm_bucket_t *bucket;
int32_t index;
}
-
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 MemorySegmentbucket(MemorySegment struct) Getter for field:ecs_hm_bucket_t *bucketstatic voidbucket(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_hm_bucket_t *bucketstatic final AddressLayoutLayout for field:ecs_hm_bucket_t *bucketstatic final longOffset for field:ecs_hm_bucket_t *bucketstatic intindex(MemorySegment struct) Getter for field:int32_t indexstatic voidindex(MemorySegment struct, int fieldValue) Setter for field:int32_t indexstatic final ValueLayout.OfIntLayout for field:int32_t indexstatic final longOffset for field:int32_t indexstatic MemorySegmentit(MemorySegment struct) Getter for field:ecs_map_iter_t itstatic voidit(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_map_iter_t itstatic final GroupLayoutLayout for field:ecs_map_iter_t itstatic final longOffset for field:ecs_map_iter_t itstatic 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 -
it$layout
Layout for field:ecs_map_iter_t it -
it$offset
public static final long it$offset()Offset for field:ecs_map_iter_t it -
it
Getter for field:ecs_map_iter_t it -
it
Setter for field:ecs_map_iter_t it -
bucket$layout
Layout for field:ecs_hm_bucket_t *bucket -
bucket$offset
public static final long bucket$offset()Offset for field:ecs_hm_bucket_t *bucket -
bucket
Getter for field:ecs_hm_bucket_t *bucket -
bucket
Setter for field:ecs_hm_bucket_t *bucket -
index$layout
Layout for field:int32_t index -
index$offset
public static final long index$offset()Offset for field:int32_t index -
index
Getter for field:int32_t index -
index
Setter for field:int32_t index -
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()
-