Class flecs_hashmap_result_t
java.lang.Object
com.github.elebras1.flecs.flecs_hashmap_result_t
struct {
void *key;
void *value;
uint64_t hash;
}
-
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 longhash(MemorySegment struct) Getter for field:uint64_t hashstatic voidhash(MemorySegment struct, long fieldValue) Setter for field:uint64_t hashstatic final ValueLayout.OfLongLayout for field:uint64_t hashstatic final longOffset for field:uint64_t hashstatic MemorySegmentkey(MemorySegment struct) Getter for field:void *keystatic voidkey(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *keystatic final AddressLayoutLayout for field:void *keystatic final longOffset for field:void *keystatic 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 structstatic MemorySegmentvalue(MemorySegment struct) Getter for field:void *valuestatic voidvalue(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *valuestatic final AddressLayoutLayout for field:void *valuestatic final longOffset for field:void *value
-
Method Details
-
layout
The layout of this struct -
key$layout
Layout for field:void *key -
key$offset
public static final long key$offset()Offset for field:void *key -
key
Getter for field:void *key -
key
Setter for field:void *key -
value$layout
Layout for field:void *value -
value$offset
public static final long value$offset()Offset for field:void *value -
value
Getter for field:void *value -
value
Setter for field:void *value -
hash$layout
Layout for field:uint64_t hash -
hash$offset
public static final long hash$offset()Offset for field:uint64_t hash -
hash
Getter for field:uint64_t hash -
hash
Setter for field:uint64_t hash -
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()
-