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.NativeResourceLayout
union LARGE_INTEGER { struct { DWORD LowPart; LONG HighPart; } u; LONGLONG QuadPart; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLARGE_INTEGER.BufferAn array ofLARGE_INTEGERstructs.
-
Constructor Summary
Constructors Constructor Description LARGE_INTEGER(java.nio.ByteBuffer container)Creates aLARGE_INTEGERinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LARGE_INTEGERcalloc()Returns a newLARGE_INTEGERinstance allocated withmemCalloc.static LARGE_INTEGER.Buffercalloc(int capacity)Returns a newLARGE_INTEGER.Bufferinstance allocated withmemCalloc.static LARGE_INTEGER.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LARGE_INTEGERcalloc(org.lwjgl.system.MemoryStack stack)Returns a newLARGE_INTEGERinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LARGE_INTEGERcreate()Returns a newLARGE_INTEGERinstance allocated withBufferUtils.static LARGE_INTEGER.Buffercreate(int capacity)Returns a newLARGE_INTEGER.Bufferinstance allocated withBufferUtils.static LARGE_INTEGERcreate(long address)Returns a newLARGE_INTEGERinstance for the specified memory address.static LARGE_INTEGER.Buffercreate(long address, int capacity)Create aLARGE_INTEGER.Bufferinstance at the specified memory.static LARGE_INTEGERcreateSafe(long address)static LARGE_INTEGER.BuffercreateSafe(long address, int capacity)static LARGE_INTEGERmalloc()Returns a newLARGE_INTEGERinstance allocated withmemAlloc.static LARGE_INTEGER.Buffermalloc(int capacity)Returns a newLARGE_INTEGER.Bufferinstance allocated withmemAlloc.static LARGE_INTEGER.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStack.static LARGE_INTEGERmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLARGE_INTEGERinstance allocated on the specifiedMemoryStack.static longnQuadPart(long struct)Unsafe version ofQuadPart().static voidnQuadPart(long struct, long value)Unsafe version ofQuadPart.static intnu_HighPart(long struct)Unsafe version ofu_HighPart().static voidnu_HighPart(long struct, int value)Unsafe version ofu_HighPart.static intnu_LowPart(long struct)Unsafe version ofu_LowPart().static voidnu_LowPart(long struct, int value)Unsafe version ofu_LowPart.longQuadPart()LARGE_INTEGERQuadPart(long value)Sets the specified value to theQuadPartfield.LARGE_INTEGERset(LARGE_INTEGER src)Copies the specified struct data to this struct.intsizeof()intu_HighPart()LARGE_INTEGERu_HighPart(int value)Sets the specified value to theHighPartfield.intu_LowPart()LARGE_INTEGERu_LowPart(int value)Sets the specified value to theLowPartfield.
-
-
-
Constructor Detail
-
LARGE_INTEGER
public LARGE_INTEGER(java.nio.ByteBuffer container)
Creates aLARGE_INTEGERinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
u_LowPart
public int u_LowPart()
- Returns:
- the value of the
u.LowPartfield.
-
u_HighPart
public int u_HighPart()
- Returns:
- the value of the
u.HighPartfield.
-
QuadPart
public long QuadPart()
- Returns:
- the value of the
QuadPartfield.
-
u_LowPart
public LARGE_INTEGER u_LowPart(int value)
Sets the specified value to theLowPartfield.
-
u_HighPart
public LARGE_INTEGER u_HighPart(int value)
Sets the specified value to theHighPartfield.
-
QuadPart
public LARGE_INTEGER QuadPart(long value)
Sets the specified value to theQuadPartfield.
-
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_INTEGERinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LARGE_INTEGER calloc()
Returns a newLARGE_INTEGERinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LARGE_INTEGER create()
Returns a newLARGE_INTEGERinstance allocated withBufferUtils.
-
create
public static LARGE_INTEGER create(long address)
Returns a newLARGE_INTEGERinstance 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.Bufferinstance 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.Bufferinstance 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.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LARGE_INTEGER.Buffer create(long address, int capacity)
Create aLARGE_INTEGER.Bufferinstance 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_INTEGERinstance 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_INTEGERinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-