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 SequenceLayoutLayout for field:__syscall_slong_t __glibc_reserved[3]static final longOffset for field:__syscall_slong_t __glibc_reserved[3]static int__pad0(MemorySegment struct) Getter for field:int __pad0static void__pad0(MemorySegment struct, int fieldValue) Setter for field:int __pad0static final ValueLayout.OfIntLayout for field:int __pad0static final longOffset for field:int __pad0static 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 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 structstatic MemorySegmentst_atim(MemorySegment struct) Getter for field:struct timespec st_atimstatic voidst_atim(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_atimstatic final GroupLayoutLayout for field:struct timespec st_atimstatic final longOffset for field:struct timespec st_atimstatic longst_blksize(MemorySegment struct) Getter for field:__blksize_t st_blksizestatic voidst_blksize(MemorySegment struct, long fieldValue) Setter for field:__blksize_t st_blksizestatic final ValueLayout.OfLongLayout for field:__blksize_t st_blksizestatic final longOffset for field:__blksize_t st_blksizestatic longst_blocks(MemorySegment struct) Getter for field:__blkcnt_t st_blocksstatic voidst_blocks(MemorySegment struct, long fieldValue) Setter for field:__blkcnt_t st_blocksstatic final ValueLayout.OfLongLayout for field:__blkcnt_t st_blocksstatic final longOffset for field:__blkcnt_t st_blocksstatic MemorySegmentst_ctim(MemorySegment struct) Getter for field:struct timespec st_ctimstatic voidst_ctim(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_ctimstatic final GroupLayoutLayout for field:struct timespec st_ctimstatic final longOffset for field:struct timespec st_ctimstatic longst_dev(MemorySegment struct) Getter for field:__dev_t st_devstatic voidst_dev(MemorySegment struct, long fieldValue) Setter for field:__dev_t st_devstatic final ValueLayout.OfLongLayout for field:__dev_t st_devstatic final longOffset for field:__dev_t st_devstatic intst_gid(MemorySegment struct) Getter for field:__gid_t st_gidstatic voidst_gid(MemorySegment struct, int fieldValue) Setter for field:__gid_t st_gidstatic final ValueLayout.OfIntLayout for field:__gid_t st_gidstatic final longOffset for field:__gid_t st_gidstatic longst_ino(MemorySegment struct) Getter for field:__ino_t st_inostatic voidst_ino(MemorySegment struct, long fieldValue) Setter for field:__ino_t st_inostatic final ValueLayout.OfLongLayout for field:__ino_t st_inostatic final longOffset for field:__ino_t st_inostatic intst_mode(MemorySegment struct) Getter for field:__mode_t st_modestatic voidst_mode(MemorySegment struct, int fieldValue) Setter for field:__mode_t st_modestatic final ValueLayout.OfIntLayout for field:__mode_t st_modestatic final longOffset for field:__mode_t st_modestatic MemorySegmentst_mtim(MemorySegment struct) Getter for field:struct timespec st_mtimstatic voidst_mtim(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct timespec st_mtimstatic final GroupLayoutLayout for field:struct timespec st_mtimstatic final longOffset for field:struct timespec st_mtimstatic longst_nlink(MemorySegment struct) Getter for field:__nlink_t st_nlinkstatic voidst_nlink(MemorySegment struct, long fieldValue) Setter for field:__nlink_t st_nlinkstatic final ValueLayout.OfLongLayout for field:__nlink_t st_nlinkstatic final longOffset for field:__nlink_t st_nlinkstatic longst_rdev(MemorySegment struct) Getter for field:__dev_t st_rdevstatic voidst_rdev(MemorySegment struct, long fieldValue) Setter for field:__dev_t st_rdevstatic final ValueLayout.OfLongLayout for field:__dev_t st_rdevstatic final longOffset for field:__dev_t st_rdevstatic longst_size(MemorySegment struct) Getter for field:__off_t st_sizestatic voidst_size(MemorySegment struct, long fieldValue) Setter for field:__off_t st_sizestatic final ValueLayout.OfLongLayout for field:__off_t st_sizestatic final longOffset for field:__off_t st_sizestatic intst_uid(MemorySegment struct) Getter for field:__uid_t st_uidstatic voidst_uid(MemorySegment struct, int fieldValue) Setter for field:__uid_t st_uidstatic final ValueLayout.OfIntLayout for field:__uid_t st_uidstatic final longOffset 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 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()
-