Package org.freedesktop.wayland.raw
Class stat
java.lang.Object
org.freedesktop.wayland.raw.stat
struct stat {
__dev_t st_dev;
__ino_t st_ino;
__nlink_t st_nlink;
__mode_t st_mode;
__uid_t st_uid;
__gid_t st_gid;
int __pad0;
__dev_t st_rdev;
__off_t st_size;
__blksize_t st_blksize;
__blkcnt_t st_blocks;
struct timespec st_atim;
struct timespec st_mtim;
struct timespec st_ctim;
__syscall_slong_t __glibc_reserved[3];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
__glibc_reserved
(MemorySegment struct) Getter for field:__syscall_slong_t __glibc_reserved[3]
static long
__glibc_reserved
(MemorySegment struct, long index0) Indexed getter for field:__syscall_slong_t __glibc_reserved[3]
static void
__glibc_reserved
(MemorySegment struct, long index0, long fieldValue) Indexed setter for field:__syscall_slong_t __glibc_reserved[3]
static void
__glibc_reserved
(MemorySegment struct, MemorySegment fieldValue) Setter for field:__syscall_slong_t __glibc_reserved[3]
static long[]
Dimensions for array field:__syscall_slong_t __glibc_reserved[3]
static final SequenceLayout
Layout for field:__syscall_slong_t __glibc_reserved[3]
static final long
Offset for field:__syscall_slong_t __glibc_reserved[3]
static int
__pad0
(MemorySegment struct) Getter for field:int __pad0
static void
__pad0
(MemorySegment struct, int fieldValue) Setter for field:int __pad0
static final ValueLayout.OfInt
Layout for field:int __pad0
static final long
Offset for field:int __pad0
static 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 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 structstatic MemorySegment
st_atim
(MemorySegment struct) Getter for field:struct timespec st_atim
static void
st_atim
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_atim
static final GroupLayout
Layout for field:struct timespec st_atim
static final long
Offset for field:struct timespec st_atim
static long
st_blksize
(MemorySegment struct) Getter for field:__blksize_t st_blksize
static void
st_blksize
(MemorySegment struct, long fieldValue) Setter for field:__blksize_t st_blksize
static final ValueLayout.OfLong
Layout for field:__blksize_t st_blksize
static final long
Offset for field:__blksize_t st_blksize
static long
st_blocks
(MemorySegment struct) Getter for field:__blkcnt_t st_blocks
static void
st_blocks
(MemorySegment struct, long fieldValue) Setter for field:__blkcnt_t st_blocks
static final ValueLayout.OfLong
Layout for field:__blkcnt_t st_blocks
static final long
Offset for field:__blkcnt_t st_blocks
static MemorySegment
st_ctim
(MemorySegment struct) Getter for field:struct timespec st_ctim
static void
st_ctim
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_ctim
static final GroupLayout
Layout for field:struct timespec st_ctim
static final long
Offset for field:struct timespec st_ctim
static long
st_dev
(MemorySegment struct) Getter for field:__dev_t st_dev
static void
st_dev
(MemorySegment struct, long fieldValue) Setter for field:__dev_t st_dev
static final ValueLayout.OfLong
Layout for field:__dev_t st_dev
static final long
Offset for field:__dev_t st_dev
static int
st_gid
(MemorySegment struct) Getter for field:__gid_t st_gid
static void
st_gid
(MemorySegment struct, int fieldValue) Setter for field:__gid_t st_gid
static final ValueLayout.OfInt
Layout for field:__gid_t st_gid
static final long
Offset for field:__gid_t st_gid
static long
st_ino
(MemorySegment struct) Getter for field:__ino_t st_ino
static void
st_ino
(MemorySegment struct, long fieldValue) Setter for field:__ino_t st_ino
static final ValueLayout.OfLong
Layout for field:__ino_t st_ino
static final long
Offset for field:__ino_t st_ino
static int
st_mode
(MemorySegment struct) Getter for field:__mode_t st_mode
static void
st_mode
(MemorySegment struct, int fieldValue) Setter for field:__mode_t st_mode
static final ValueLayout.OfInt
Layout for field:__mode_t st_mode
static final long
Offset for field:__mode_t st_mode
static MemorySegment
st_mtim
(MemorySegment struct) Getter for field:struct timespec st_mtim
static void
st_mtim
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_mtim
static final GroupLayout
Layout for field:struct timespec st_mtim
static final long
Offset for field:struct timespec st_mtim
static long
st_nlink
(MemorySegment struct) Getter for field:__nlink_t st_nlink
static void
st_nlink
(MemorySegment struct, long fieldValue) Setter for field:__nlink_t st_nlink
static final ValueLayout.OfLong
Layout for field:__nlink_t st_nlink
static final long
Offset for field:__nlink_t st_nlink
static long
st_rdev
(MemorySegment struct) Getter for field:__dev_t st_rdev
static void
st_rdev
(MemorySegment struct, long fieldValue) Setter for field:__dev_t st_rdev
static final ValueLayout.OfLong
Layout for field:__dev_t st_rdev
static final long
Offset for field:__dev_t st_rdev
static long
st_size
(MemorySegment struct) Getter for field:__off_t st_size
static void
st_size
(MemorySegment struct, long fieldValue) Setter for field:__off_t st_size
static final ValueLayout.OfLong
Layout for field:__off_t st_size
static final long
Offset for field:__off_t st_size
static int
st_uid
(MemorySegment struct) Getter for field:__uid_t st_uid
static void
st_uid
(MemorySegment struct, int fieldValue) Setter for field:__uid_t st_uid
static final ValueLayout.OfInt
Layout for field:__uid_t st_uid
static final long
Offset for field:__uid_t st_uid
-
Method Details
-
layout
The layout of this struct -
st_dev$layout
Layout for field:__dev_t st_dev
-
st_dev$offset
public static final long st_dev$offset()Offset for field:__dev_t st_dev
-
st_dev
Getter for field:__dev_t st_dev
-
st_dev
Setter for field:__dev_t st_dev
-
st_ino$layout
Layout for field:__ino_t st_ino
-
st_ino$offset
public static final long st_ino$offset()Offset for field:__ino_t st_ino
-
st_ino
Getter for field:__ino_t st_ino
-
st_ino
Setter for field:__ino_t st_ino
-
st_nlink$layout
Layout for field:__nlink_t st_nlink
-
st_nlink$offset
public static final long st_nlink$offset()Offset for field:__nlink_t st_nlink
-
st_nlink
Getter for field:__nlink_t st_nlink
-
st_nlink
Setter for field:__nlink_t st_nlink
-
st_mode$layout
Layout for field:__mode_t st_mode
-
st_mode$offset
public static final long st_mode$offset()Offset for field:__mode_t st_mode
-
st_mode
Getter for field:__mode_t st_mode
-
st_mode
Setter for field:__mode_t st_mode
-
st_uid$layout
Layout for field:__uid_t st_uid
-
st_uid$offset
public static final long st_uid$offset()Offset for field:__uid_t st_uid
-
st_uid
Getter for field:__uid_t st_uid
-
st_uid
Setter for field:__uid_t st_uid
-
st_gid$layout
Layout for field:__gid_t st_gid
-
st_gid$offset
public static final long st_gid$offset()Offset for field:__gid_t st_gid
-
st_gid
Getter for field:__gid_t st_gid
-
st_gid
Setter for field:__gid_t st_gid
-
__pad0$layout
Layout for field:int __pad0
-
__pad0$offset
public static final long __pad0$offset()Offset for field:int __pad0
-
__pad0
Getter for field:int __pad0
-
__pad0
Setter for field:int __pad0
-
st_rdev$layout
Layout for field:__dev_t st_rdev
-
st_rdev$offset
public static final long st_rdev$offset()Offset for field:__dev_t st_rdev
-
st_rdev
Getter for field:__dev_t st_rdev
-
st_rdev
Setter for field:__dev_t st_rdev
-
st_size$layout
Layout for field:__off_t st_size
-
st_size$offset
public static final long st_size$offset()Offset for field:__off_t st_size
-
st_size
Getter for field:__off_t st_size
-
st_size
Setter for field:__off_t st_size
-
st_blksize$layout
Layout for field:__blksize_t st_blksize
-
st_blksize$offset
public static final long st_blksize$offset()Offset for field:__blksize_t st_blksize
-
st_blksize
Getter for field:__blksize_t st_blksize
-
st_blksize
Setter for field:__blksize_t st_blksize
-
st_blocks$layout
Layout for field:__blkcnt_t st_blocks
-
st_blocks$offset
public static final long st_blocks$offset()Offset for field:__blkcnt_t st_blocks
-
st_blocks
Getter for field:__blkcnt_t st_blocks
-
st_blocks
Setter for field:__blkcnt_t st_blocks
-
st_atim$layout
Layout for field:struct timespec st_atim
-
st_atim$offset
public static final long st_atim$offset()Offset for field:struct timespec st_atim
-
st_atim
Getter for field:struct timespec st_atim
-
st_atim
Setter for field:struct timespec st_atim
-
st_mtim$layout
Layout for field:struct timespec st_mtim
-
st_mtim$offset
public static final long st_mtim$offset()Offset for field:struct timespec st_mtim
-
st_mtim
Getter for field:struct timespec st_mtim
-
st_mtim
Setter for field:struct timespec st_mtim
-
st_ctim$layout
Layout for field:struct timespec st_ctim
-
st_ctim$offset
public static final long st_ctim$offset()Offset for field:struct timespec st_ctim
-
st_ctim
Getter for field:struct timespec st_ctim
-
st_ctim
Setter for field:struct timespec st_ctim
-
__glibc_reserved$layout
Layout for field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved$offset
public static final long __glibc_reserved$offset()Offset for field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved
Getter for field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved
Setter for field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved$dimensions
public static long[] __glibc_reserved$dimensions()Dimensions for array field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved
Indexed getter for field:__syscall_slong_t __glibc_reserved[3]
-
__glibc_reserved
Indexed setter for field:__syscall_slong_t __glibc_reserved[3]
-
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()
-