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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • U

      public static final int U
      The struct member offsets.
    • U_LOWPART

      public static final int U_LOWPART
      The struct member offsets.
    • U_HIGHPART

      public static final int U_HIGHPART
      The struct member offsets.
    • QUADPART

      public static final int QUADPART
      The struct member offsets.
  • Constructor Details

    • LARGE_INTEGER

      public LARGE_INTEGER(ByteBuffer container)
      Creates a LARGE_INTEGER instance at the current position of the specified ByteBuffer 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 class org.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

      public LARGE_INTEGER u_LowPart(int value)
      Sets the specified value to the LowPart field.
    • u_HighPart

      public LARGE_INTEGER u_HighPart(int value)
      Sets the specified value to the HighPart field.
    • QuadPart

      public LARGE_INTEGER QuadPart(long value)
      Sets the specified value to the QuadPart 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 new LARGE_INTEGER instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static LARGE_INTEGER calloc()
      Returns a new LARGE_INTEGER instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static LARGE_INTEGER create()
      Returns a new LARGE_INTEGER instance allocated with BufferUtils.
    • create

      public static LARGE_INTEGER create(long address)
      Returns a new LARGE_INTEGER instance for the specified memory address.
    • createSafe

      @Nullable public static LARGE_INTEGER createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static LARGE_INTEGER.Buffer malloc(int capacity)
      Returns a new LARGE_INTEGER.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static LARGE_INTEGER.Buffer calloc(int capacity)
      Returns a new LARGE_INTEGER.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static LARGE_INTEGER.Buffer create(int capacity)
      Returns a new LARGE_INTEGER.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static LARGE_INTEGER.Buffer create(long address, int capacity)
      Create a LARGE_INTEGER.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static LARGE_INTEGER.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static LARGE_INTEGER malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new LARGE_INTEGER instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static LARGE_INTEGER calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new LARGE_INTEGER instance allocated on the specified MemoryStack 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 new LARGE_INTEGER.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static LARGE_INTEGER.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new LARGE_INTEGER.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nu_LowPart

      public static int nu_LowPart(long struct)
      Unsafe version of u_LowPart().
    • nu_HighPart

      public static int nu_HighPart(long struct)
      Unsafe version of u_HighPart().
    • nQuadPart

      public static long nQuadPart(long struct)
      Unsafe version of QuadPart().
    • nu_LowPart

      public static void nu_LowPart(long struct, int value)
      Unsafe version of u_LowPart.
    • nu_HighPart

      public static void nu_HighPart(long struct, int value)
      Unsafe version of u_HighPart.
    • nQuadPart

      public static void nQuadPart(long struct, long value)
      Unsafe version of QuadPart.