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 MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static long
l_len
(MemorySegment struct) Getter for field:__off_t l_len
static void
l_len
(MemorySegment struct, long fieldValue) Setter for field:__off_t l_len
static final ValueLayout.OfLong
Layout for field:__off_t l_len
static final long
Offset for field:__off_t l_len
static int
l_pid
(MemorySegment struct) Getter for field:__pid_t l_pid
static void
l_pid
(MemorySegment struct, int fieldValue) Setter for field:__pid_t l_pid
static final ValueLayout.OfInt
Layout for field:__pid_t l_pid
static final long
Offset for field:__pid_t l_pid
static long
l_start
(MemorySegment struct) Getter for field:__off_t l_start
static void
l_start
(MemorySegment struct, long fieldValue) Setter for field:__off_t l_start
static final ValueLayout.OfLong
Layout for field:__off_t l_start
static final long
Offset for field:__off_t l_start
static short
l_type
(MemorySegment struct) Getter for field:short l_type
static void
l_type
(MemorySegment struct, short fieldValue) Setter for field:short l_type
static final ValueLayout.OfShort
Layout for field:short l_type
static final long
Offset for field:short l_type
static short
l_whence
(MemorySegment struct) Getter for field:short l_whence
static void
l_whence
(MemorySegment struct, short fieldValue) Setter for field:short l_whence
static final ValueLayout.OfShort
Layout for field:short l_whence
static final long
Offset for field:short l_whence
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-