Class __atomic_wide_counter
java.lang.Object
com.github.elebras1.flecs.__atomic_wide_counter
union {
unsigned long long __value64;
struct {
unsigned int __low;
unsigned int __high;
} __value32;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstruct { unsigned int __low; unsigned int __high; } -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment__value32(MemorySegment union) Getter for field:struct { unsigned int __low; unsigned int __high; } __value32static void__value32(MemorySegment union, MemorySegment fieldValue) Setter for field:struct { unsigned int __low; unsigned int __high; } __value32static final GroupLayoutLayout for field:struct { unsigned int __low; unsigned int __high; } __value32static final longOffset for field:struct { unsigned int __low; unsigned int __high; } __value32static long__value64(MemorySegment union) Getter for field:unsigned long long __value64static void__value64(MemorySegment union, long fieldValue) Setter for field:unsigned long long __value64static final ValueLayout.OfLongLayout for field:unsigned long long __value64static final longOffset for field:unsigned long long __value64static 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 final GroupLayoutlayout()The layout of this unionstatic 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 union
-
Method Details
-
layout
The layout of this union -
__value64$layout
Layout for field:unsigned long long __value64 -
__value64$offset
public static final long __value64$offset()Offset for field:unsigned long long __value64 -
__value64
Getter for field:unsigned long long __value64 -
__value64
Setter for field:unsigned long long __value64 -
__value32$layout
Layout for field:struct { unsigned int __low; unsigned int __high; } __value32 -
__value32$offset
public static final long __value32$offset()Offset for field:struct { unsigned int __low; unsigned int __high; } __value32 -
__value32
Getter for field:struct { unsigned int __low; unsigned int __high; } __value32 -
__value32
Setter for field:struct { unsigned int __low; unsigned int __high; } __value32 -
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 union -
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()
-