Class __mbstate_t.__value
java.lang.Object
io.github.elebras1.flecs.__mbstate_t.__value
- Enclosing class:
__mbstate_t
union {
unsigned int __wch;
char __wchb[4];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int__wch(MemorySegment union) Getter for field:unsigned int __wchstatic void__wch(MemorySegment union, int fieldValue) Setter for field:unsigned int __wchstatic final ValueLayout.OfIntLayout for field:unsigned int __wchstatic final longOffset for field:unsigned int __wchstatic MemorySegment__wchb(MemorySegment union) Getter for field:char __wchb[4]static byte__wchb(MemorySegment union, long index0) Indexed getter for field:char __wchb[4]static void__wchb(MemorySegment union, long index0, byte fieldValue) Indexed setter for field:char __wchb[4]static void__wchb(MemorySegment union, MemorySegment fieldValue) Setter for field:char __wchb[4]static long[]Dimensions for array field:char __wchb[4]static final SequenceLayoutLayout for field:char __wchb[4]static final longOffset for field:char __wchb[4]static 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 -
__wch$layout
Layout for field:unsigned int __wch -
__wch$offset
public static final long __wch$offset()Offset for field:unsigned int __wch -
__wch
Getter for field:unsigned int __wch -
__wch
Setter for field:unsigned int __wch -
__wchb$layout
Layout for field:char __wchb[4] -
__wchb$offset
public static final long __wchb$offset()Offset for field:char __wchb[4] -
__wchb
Getter for field:char __wchb[4] -
__wchb
Setter for field:char __wchb[4] -
__wchb$dimensions
public static long[] __wchb$dimensions()Dimensions for array field:char __wchb[4] -
__wchb
Indexed getter for field:char __wchb[4] -
__wchb
Indexed setter for field:char __wchb[4] -
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()
-