Package org.freedesktop.wayland.raw
Class wl_object
java.lang.Object
org.freedesktop.wayland.raw.wl_object
struct wl_object {
const struct wl_interface *interface;
const void *implementation;
uint32_t id;
}
-
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 intid(MemorySegment struct) Getter for field:uint32_t idstatic voidid(MemorySegment struct, int fieldValue) Setter for field:uint32_t idstatic final ValueLayout.OfIntLayout for field:uint32_t idstatic final longOffset for field:uint32_t idstatic MemorySegmentimplementation(MemorySegment struct) Getter for field:const void *implementationstatic voidimplementation(MemorySegment struct, MemorySegment fieldValue) Setter for field:const void *implementationstatic final AddressLayoutLayout for field:const void *implementationstatic final longOffset for field:const void *implementationstatic MemorySegmentinterface_(MemorySegment struct) Getter for field:const struct wl_interface *interfacestatic voidinterface_(MemorySegment struct, MemorySegment fieldValue) Setter for field:const struct wl_interface *interfacestatic final AddressLayoutLayout for field:const struct wl_interface *interfacestatic final longOffset for field:const struct wl_interface *interfacestatic final GroupLayoutlayout()The layout of this structstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
interface_$layout
Layout for field:const struct wl_interface *interface -
interface_$offset
public static final long interface_$offset()Offset for field:const struct wl_interface *interface -
interface_
Getter for field:const struct wl_interface *interface -
interface_
Setter for field:const struct wl_interface *interface -
implementation$layout
Layout for field:const void *implementation -
implementation$offset
public static final long implementation$offset()Offset for field:const void *implementation -
implementation
Getter for field:const void *implementation -
implementation
Setter for field:const void *implementation -
id$layout
Layout for field:uint32_t id -
id$offset
public static final long id$offset()Offset for field:uint32_t id -
id
Getter for field:uint32_t id -
id
Setter for field:uint32_t id -
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()
-