Class Statx.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<Statx>, NativeResource, Pointer
- Enclosing class:
Statx
public static class Statx.Buffer
extends StructBuffer<Statx, Statx.Buffer>
implements NativeResource
An array of
Statx structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newStatx.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionstx_atime(Consumer<StatxTimestamp> consumer) Passes thestx_atimefield to the specifiedConsumer.stx_atime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_atimefield.longstx_attributes(long value) Sets the specified value to thestx_attributesfield.longstx_attributes_mask(long value) Sets the specified value to thestx_attributes_maskfield.intstx_blksize(int value) Sets the specified value to thestx_blksizefield.longstx_blocks(long value) Sets the specified value to thestx_blocksfield.stx_btime(Consumer<StatxTimestamp> consumer) Passes thestx_btimefield to the specifiedConsumer.stx_btime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_btimefield.stx_ctime(Consumer<StatxTimestamp> consumer) Passes thestx_ctimefield to the specifiedConsumer.stx_ctime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_ctimefield.intstx_dev_major(int value) Sets the specified value to thestx_dev_majorfield.intstx_dev_minor(int value) Sets the specified value to thestx_dev_minorfield.intstx_gid()stx_gid(int value) Sets the specified value to thestx_gidfield.longstx_ino()stx_ino(long value) Sets the specified value to thestx_inofield.intstx_mask()stx_mask(int value) Sets the specified value to thestx_maskfield.longstx_mnt_id(long value) Sets the specified value to thestx_mnt_idfield.shortstx_mode()stx_mode(short value) Sets the specified value to thestx_modefield.stx_mtime(Consumer<StatxTimestamp> consumer) Passes thestx_mtimefield to the specifiedConsumer.stx_mtime(StatxTimestamp value) Copies the specifiedStatxTimestampto thestx_mtimefield.intstx_nlink(int value) Sets the specified value to thestx_nlinkfield.intstx_rdev_major(int value) Sets the specified value to thestx_rdev_majorfield.intstx_rdev_minor(int value) Sets the specified value to thestx_rdev_minorfield.longstx_size()stx_size(long value) Sets the specified value to thestx_sizefield.intstx_uid()stx_uid(int value) Sets the specified value to thestx_uidfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newStatx.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
Statx.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
stx_mask
- Returns:
- the value of the
stx_maskfield.
-
stx_blksize
- Returns:
- the value of the
stx_blksizefield.
-
stx_attributes
- Returns:
- the value of the
stx_attributesfield.
-
stx_nlink
- Returns:
- the value of the
stx_nlinkfield.
-
stx_uid
- Returns:
- the value of the
stx_uidfield.
-
stx_gid
- Returns:
- the value of the
stx_gidfield.
-
stx_mode
- Returns:
- the value of the
stx_modefield.
-
stx_ino
- Returns:
- the value of the
stx_inofield.
-
stx_size
- Returns:
- the value of the
stx_sizefield.
-
stx_blocks
- Returns:
- the value of the
stx_blocksfield.
-
stx_attributes_mask
- Returns:
- the value of the
stx_attributes_maskfield.
-
stx_atime
- Returns:
- a
StatxTimestampview of thestx_atimefield.
-
stx_btime
- Returns:
- a
StatxTimestampview of thestx_btimefield.
-
stx_ctime
- Returns:
- a
StatxTimestampview of thestx_ctimefield.
-
stx_mtime
- Returns:
- a
StatxTimestampview of thestx_mtimefield.
-
stx_rdev_major
- Returns:
- the value of the
stx_rdev_majorfield.
-
stx_rdev_minor
- Returns:
- the value of the
stx_rdev_minorfield.
-
stx_dev_major
- Returns:
- the value of the
stx_dev_majorfield.
-
stx_dev_minor
- Returns:
- the value of the
stx_dev_minorfield.
-
stx_mnt_id
- Returns:
- the value of the
stx_mnt_idfield.
-
stx_mask
Sets the specified value to thestx_maskfield. -
stx_blksize
Sets the specified value to thestx_blksizefield. -
stx_attributes
Sets the specified value to thestx_attributesfield. -
stx_nlink
Sets the specified value to thestx_nlinkfield. -
stx_uid
Sets the specified value to thestx_uidfield. -
stx_gid
Sets the specified value to thestx_gidfield. -
stx_mode
Sets the specified value to thestx_modefield. -
stx_ino
Sets the specified value to thestx_inofield. -
stx_size
Sets the specified value to thestx_sizefield. -
stx_blocks
Sets the specified value to thestx_blocksfield. -
stx_attributes_mask
Sets the specified value to thestx_attributes_maskfield. -
stx_atime
Copies the specifiedStatxTimestampto thestx_atimefield. -
stx_atime
Passes thestx_atimefield to the specifiedConsumer. -
stx_btime
Copies the specifiedStatxTimestampto thestx_btimefield. -
stx_btime
Passes thestx_btimefield to the specifiedConsumer. -
stx_ctime
Copies the specifiedStatxTimestampto thestx_ctimefield. -
stx_ctime
Passes thestx_ctimefield to the specifiedConsumer. -
stx_mtime
Copies the specifiedStatxTimestampto thestx_mtimefield. -
stx_mtime
Passes thestx_mtimefield to the specifiedConsumer. -
stx_rdev_major
Sets the specified value to thestx_rdev_majorfield. -
stx_rdev_minor
Sets the specified value to thestx_rdev_minorfield. -
stx_dev_major
Sets the specified value to thestx_dev_majorfield. -
stx_dev_minor
Sets the specified value to thestx_dev_minorfield. -
stx_mnt_id
Sets the specified value to thestx_mnt_idfield.
-