Package org.lwjgl.system.windows
Class LARGE_INTEGER
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.LARGE_INTEGER
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class LARGE_INTEGER extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
union LARGE_INTEGER { struct { DWORD LowPart; LONG HighPart; } u; LONGLONG QuadPart; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LARGE_INTEGER.Buffer
An array ofLARGE_INTEGER
structs.
-
Constructor Summary
Constructors Constructor Description LARGE_INTEGER(java.nio.ByteBuffer container)
Creates aLARGE_INTEGER
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()
LARGE_INTEGER
QuadPart(long value)
Sets the specified value to theQuadPart
field.LARGE_INTEGER
set(LARGE_INTEGER src)
Copies the specified struct data to this struct.int
sizeof()
int
u_HighPart()
LARGE_INTEGER
u_HighPart(int value)
Sets the specified value to theHighPart
field.int
u_LowPart()
LARGE_INTEGER
u_LowPart(int value)
Sets the specified value to theLowPart
field.
-
-
-
Constructor Detail
-
LARGE_INTEGER
public LARGE_INTEGER(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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
public LARGE_INTEGER u_LowPart(int value)
Sets the specified value to theLowPart
field.
-
u_HighPart
public LARGE_INTEGER u_HighPart(int value)
Sets the specified value to theHighPart
field.
-
QuadPart
public LARGE_INTEGER QuadPart(long value)
Sets the specified value to theQuadPart
field.
-
set
public LARGE_INTEGER set(LARGE_INTEGER src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static LARGE_INTEGER malloc()
Returns a newLARGE_INTEGER
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static LARGE_INTEGER calloc()
Returns a newLARGE_INTEGER
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static LARGE_INTEGER create()
Returns a newLARGE_INTEGER
instance allocated withBufferUtils
.
-
create
public static LARGE_INTEGER create(long address)
Returns a newLARGE_INTEGER
instance for the specified memory address.
-
createSafe
@Nullable public static LARGE_INTEGER createSafe(long address)
-
malloc
public static LARGE_INTEGER.Buffer malloc(int capacity)
Returns a newLARGE_INTEGER.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static LARGE_INTEGER.Buffer calloc(int capacity)
Returns a newLARGE_INTEGER.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static LARGE_INTEGER.Buffer create(int capacity)
Returns a newLARGE_INTEGER.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static LARGE_INTEGER.Buffer create(long address, int capacity)
Create aLARGE_INTEGER.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LARGE_INTEGER.Buffer createSafe(long address, int capacity)
-
malloc
public static LARGE_INTEGER malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLARGE_INTEGER
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static LARGE_INTEGER.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLARGE_INTEGER.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-