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