Package org.freedesktop.wayland.raw
Class flock
java.lang.Object
org.freedesktop.wayland.raw.flock
struct flock {
short l_type;
short l_whence;
__off_t l_start;
__off_t l_len;
__pid_t l_pid;
}
-
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 longl_len(MemorySegment struct) Getter for field:__off_t l_lenstatic voidl_len(MemorySegment struct, long fieldValue) Setter for field:__off_t l_lenstatic final ValueLayout.OfLongLayout for field:__off_t l_lenstatic final longOffset for field:__off_t l_lenstatic intl_pid(MemorySegment struct) Getter for field:__pid_t l_pidstatic voidl_pid(MemorySegment struct, int fieldValue) Setter for field:__pid_t l_pidstatic final ValueLayout.OfIntLayout for field:__pid_t l_pidstatic final longOffset for field:__pid_t l_pidstatic longl_start(MemorySegment struct) Getter for field:__off_t l_startstatic voidl_start(MemorySegment struct, long fieldValue) Setter for field:__off_t l_startstatic final ValueLayout.OfLongLayout for field:__off_t l_startstatic final longOffset for field:__off_t l_startstatic shortl_type(MemorySegment struct) Getter for field:short l_typestatic voidl_type(MemorySegment struct, short fieldValue) Setter for field:short l_typestatic final ValueLayout.OfShortLayout for field:short l_typestatic final longOffset for field:short l_typestatic shortl_whence(MemorySegment struct) Getter for field:short l_whencestatic voidl_whence(MemorySegment struct, short fieldValue) Setter for field:short l_whencestatic final ValueLayout.OfShortLayout for field:short l_whencestatic final longOffset for field:short l_whencestatic 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 -
l_type$layout
Layout for field:short l_type -
l_type$offset
public static final long l_type$offset()Offset for field:short l_type -
l_type
Getter for field:short l_type -
l_type
Setter for field:short l_type -
l_whence$layout
Layout for field:short l_whence -
l_whence$offset
public static final long l_whence$offset()Offset for field:short l_whence -
l_whence
Getter for field:short l_whence -
l_whence
Setter for field:short l_whence -
l_start$layout
Layout for field:__off_t l_start -
l_start$offset
public static final long l_start$offset()Offset for field:__off_t l_start -
l_start
Getter for field:__off_t l_start -
l_start
Setter for field:__off_t l_start -
l_len$layout
Layout for field:__off_t l_len -
l_len$offset
public static final long l_len$offset()Offset for field:__off_t l_len -
l_len
Getter for field:__off_t l_len -
l_len
Setter for field:__off_t l_len -
l_pid$layout
Layout for field:__pid_t l_pid -
l_pid$offset
public static final long l_pid$offset()Offset for field:__pid_t l_pid -
l_pid
Getter for field:__pid_t l_pid -
l_pid
Setter for field:__pid_t l_pid -
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()
-