Package org.lwjgl.system.windows
Class LARGE_INTEGER
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
}-
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 alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionLARGE_INTEGER(ByteBuffer container) Creates aLARGE_INTEGERinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, MemoryStack stack) Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LARGE_INTEGERcalloc(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 @Nullable LARGE_INTEGERcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStack.static LARGE_INTEGERmalloc(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()QuadPart(long value) Sets the specified value to theQuadPartfield.set(LARGE_INTEGER src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intu_HighPart(int value) Sets the specified value to theHighPartfield.intu_LowPart(int value) Sets the specified value to theLowPartfield.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. -
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_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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LARGE_INTEGER>
-
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
Sets the specified value to theLowPartfield. -
u_HighPart
Sets the specified value to theHighPartfield. -
QuadPart
Sets the specified value to theQuadPartfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newLARGE_INTEGERinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLARGE_INTEGERinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLARGE_INTEGERinstance allocated withBufferUtils. -
create
Returns a newLARGE_INTEGERinstance for the specified memory address. -
createSafe
-
malloc
Returns a newLARGE_INTEGER.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLARGE_INTEGER.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLARGE_INTEGER.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLARGE_INTEGER.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newLARGE_INTEGERinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLARGE_INTEGERinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLARGE_INTEGER.Bufferinstance allocated on the specifiedMemoryStackand 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.
-