Package org.lwjgl.system.linux
Class StatxTimestamp
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct statx_timestamp {
__s64 tv_sec;
__u32 tv_nsec;
__s32 __reserved;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStatxTimestamp(ByteBuffer container) Creates aStatxTimestampinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatxTimestampcalloc()Returns a newStatxTimestampinstance allocated withmemCalloc.static StatxTimestamp.Buffercalloc(int capacity) Returns a newStatxTimestamp.Bufferinstance allocated withmemCalloc.static StatxTimestamp.Buffercalloc(int capacity, MemoryStack stack) Returns a newStatxTimestamp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StatxTimestampcalloc(MemoryStack stack) Returns a newStatxTimestampinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StatxTimestampcreate()Returns a newStatxTimestampinstance allocated withBufferUtils.static StatxTimestamp.Buffercreate(int capacity) Returns a newStatxTimestamp.Bufferinstance allocated withBufferUtils.static StatxTimestampcreate(long address) Returns a newStatxTimestampinstance for the specified memory address.static StatxTimestamp.Buffercreate(long address, int capacity) Create aStatxTimestamp.Bufferinstance at the specified memory.static @Nullable StatxTimestampcreateSafe(long address) static @Nullable StatxTimestamp.BuffercreateSafe(long address, int capacity) static StatxTimestampmalloc()Returns a newStatxTimestampinstance allocated withmemAlloc.static StatxTimestamp.Buffermalloc(int capacity) Returns a newStatxTimestamp.Bufferinstance allocated withmemAlloc.static StatxTimestamp.Buffermalloc(int capacity, MemoryStack stack) Returns a newStatxTimestamp.Bufferinstance allocated on the specifiedMemoryStack.static StatxTimestampmalloc(MemoryStack stack) Returns a newStatxTimestampinstance allocated on the specifiedMemoryStack.static intn__reserved(long struct) static voidn__reserved(long struct, int value) static intntv_nsec(long struct) Unsafe version oftv_nsec().static voidntv_nsec(long struct, int value) Unsafe version oftv_nsec.static longntv_sec(long struct) Unsafe version oftv_sec().static voidntv_sec(long struct, long value) Unsafe version oftv_sec.set(long tv_sec, int tv_nsec) Initializes this struct with the specified values.set(StatxTimestamp src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttv_nsec()tv_nsec(int value) Sets the specified value to thetv_nsecfield.longtv_sec()tv_sec(long value) Sets the specified value to thetv_secfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TV_SEC
public static final int TV_SECThe struct member offsets. -
TV_NSEC
public static final int TV_NSECThe struct member offsets. -
__RESERVED
public static final int __RESERVEDThe struct member offsets.
-
-
Constructor Details
-
StatxTimestamp
Creates aStatxTimestampinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StatxTimestamp>
-
tv_sec
public long tv_sec()- Returns:
- the value of the
tv_secfield.
-
tv_nsec
public int tv_nsec()- Returns:
- the value of the
tv_nsecfield.
-
tv_sec
Sets the specified value to thetv_secfield. -
tv_nsec
Sets the specified value to thetv_nsecfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newStatxTimestampinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStatxTimestampinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStatxTimestampinstance allocated withBufferUtils. -
create
Returns a newStatxTimestampinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStatxTimestamp.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStatxTimestamp.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStatxTimestamp.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStatxTimestamp.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStatxTimestampinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStatxTimestampinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStatxTimestamp.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStatxTimestamp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntv_sec
public static long ntv_sec(long struct) Unsafe version oftv_sec(). -
ntv_nsec
public static int ntv_nsec(long struct) Unsafe version oftv_nsec(). -
n__reserved
public static int n__reserved(long struct) -
ntv_sec
public static void ntv_sec(long struct, long value) Unsafe version oftv_sec. -
ntv_nsec
public static void ntv_nsec(long struct, int value) Unsafe version oftv_nsec. -
n__reserved
public static void n__reserved(long struct, int value)
-