Package org.lwjgl.system.windows
Class LARGE_INTEGER
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<LARGE_INTEGER>
org.lwjgl.system.windows.LARGE_INTEGER
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class LARGE_INTEGER
extends org.lwjgl.system.Struct<LARGE_INTEGER>
implements org.lwjgl.system.NativeResource
Layout
union LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionLARGE_INTEGER
(ByteBuffer container) Creates aLARGE_INTEGER
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LARGE_INTEGER
calloc()
Returns a newLARGE_INTEGER
instance allocated withmemCalloc
.static LARGE_INTEGER.Buffer
calloc
(int capacity) Returns a newLARGE_INTEGER.Buffer
instance allocated withmemCalloc
.static LARGE_INTEGER.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newLARGE_INTEGER.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LARGE_INTEGER
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newLARGE_INTEGER
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LARGE_INTEGER
create()
Returns a newLARGE_INTEGER
instance allocated withBufferUtils
.static LARGE_INTEGER.Buffer
create
(int capacity) Returns a newLARGE_INTEGER.Buffer
instance allocated withBufferUtils
.static LARGE_INTEGER
create
(long address) Returns a newLARGE_INTEGER
instance for the specified memory address.static LARGE_INTEGER.Buffer
create
(long address, int capacity) Create aLARGE_INTEGER.Buffer
instance at the specified memory.static LARGE_INTEGER
createSafe
(long address) static LARGE_INTEGER.Buffer
createSafe
(long address, int capacity) static LARGE_INTEGER
malloc()
Returns a newLARGE_INTEGER
instance allocated withmemAlloc
.static LARGE_INTEGER.Buffer
malloc
(int capacity) Returns a newLARGE_INTEGER.Buffer
instance allocated withmemAlloc
.static LARGE_INTEGER.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newLARGE_INTEGER.Buffer
instance allocated on the specifiedMemoryStack
.static LARGE_INTEGER
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newLARGE_INTEGER
instance allocated on the specifiedMemoryStack
.static long
nQuadPart
(long struct) Unsafe version ofQuadPart()
.static void
nQuadPart
(long struct, long value) Unsafe version ofQuadPart
.static int
nu_HighPart
(long struct) Unsafe version ofu_HighPart()
.static void
nu_HighPart
(long struct, int value) Unsafe version ofu_HighPart
.static int
nu_LowPart
(long struct) Unsafe version ofu_LowPart()
.static void
nu_LowPart
(long struct, int value) Unsafe version ofu_LowPart
.long
QuadPart()
QuadPart
(long value) Sets the specified value to theQuadPart
field.set
(LARGE_INTEGER src) Copies the specified struct data to this struct.int
sizeof()
int
u_HighPart
(int value) Sets the specified value to theHighPart
field.int
u_LowPart
(int value) Sets the specified value to theLowPart
field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
U
public static final int UThe struct member offsets. -
U_LOWPART
public static final int U_LOWPARTThe struct member offsets. -
U_HIGHPART
public static final int U_HIGHPARTThe struct member offsets. -
QUADPART
public static final int QUADPARTThe struct member offsets.
-
-
Constructor Details
-
LARGE_INTEGER
Creates aLARGE_INTEGER
instance at the current position of the specifiedByteBuffer
container. 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()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<LARGE_INTEGER>
-
u_LowPart
public int u_LowPart()- Returns:
- the value of the
u.LowPart
field.
-
u_HighPart
public int u_HighPart()- Returns:
- the value of the
u.HighPart
field.
-
QuadPart
public long QuadPart()- Returns:
- the value of the
QuadPart
field.
-
u_LowPart
Sets the specified value to theLowPart
field. -
u_HighPart
Sets the specified value to theHighPart
field. -
QuadPart
Sets the specified value to theQuadPart
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newLARGE_INTEGER
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLARGE_INTEGER
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLARGE_INTEGER
instance allocated withBufferUtils
. -
create
Returns a newLARGE_INTEGER
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLARGE_INTEGER.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLARGE_INTEGER.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLARGE_INTEGER.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLARGE_INTEGER.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newLARGE_INTEGER
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLARGE_INTEGER
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLARGE_INTEGER.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLARGE_INTEGER.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nu_LowPart
public static int nu_LowPart(long struct) Unsafe version ofu_LowPart()
. -
nu_HighPart
public static int nu_HighPart(long struct) Unsafe version ofu_HighPart()
. -
nQuadPart
public static long nQuadPart(long struct) Unsafe version ofQuadPart()
. -
nu_LowPart
public static void nu_LowPart(long struct, int value) Unsafe version ofu_LowPart
. -
nu_HighPart
public static void nu_HighPart(long struct, int value) Unsafe version ofu_HighPart
. -
nQuadPart
public static void nQuadPart(long struct, long value) Unsafe version ofQuadPart
.
-