Package com.raylib.jextract
Class float16
java.lang.Object
com.raylib.jextract.float16
-
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 final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic MemorySegmentv(MemorySegment struct) Getter for field:float v[16]static floatv(MemorySegment struct, long index0) Indexed getter for field:float v[16]static voidv(MemorySegment struct, long index0, float fieldValue) Indexed setter for field:float v[16]static voidv(MemorySegment struct, MemorySegment fieldValue) Setter for field:float v[16]static long[]Dimensions for array field:float v[16]static final SequenceLayoutv$layout()Layout for field:float v[16]static final longv$offset()Offset for field:float v[16]
-
Method Details
-
layout
The layout of this struct -
v$layout
Layout for field:float v[16] -
v$offset
public static final long v$offset()Offset for field:float v[16] -
v
Getter for field:float v[16] -
v
Setter for field:float v[16] -
v$dimensions
public static long[] v$dimensions()Dimensions for array field:float v[16] -
v
Indexed getter for field:float v[16] -
v
Indexed setter for field:float v[16] -
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 targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-