Package org.freedesktop.wayland.raw
Class imaxdiv_t
java.lang.Object
org.freedesktop.wayland.raw.imaxdiv_t
-
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 longquot(MemorySegment struct) Getter for field:long quotstatic voidquot(MemorySegment struct, long fieldValue) Setter for field:long quotstatic final ValueLayout.OfLongLayout for field:long quotstatic final longOffset for field:long quotstatic 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 longrem(MemorySegment struct) Getter for field:long remstatic voidrem(MemorySegment struct, long fieldValue) Setter for field:long remstatic final ValueLayout.OfLongLayout for field:long remstatic final longOffset for field:long remstatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
quot$layout
Layout for field:long quot -
quot$offset
public static final long quot$offset()Offset for field:long quot -
quot
Getter for field:long quot -
quot
Setter for field:long quot -
rem$layout
Layout for field:long rem -
rem$offset
public static final long rem$offset()Offset for field:long rem -
rem
Getter for field:long rem -
rem
Setter for field:long rem -
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()
-