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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • U, U_LOWPART, U_HIGHPART, QUADPART

        The struct member offsets.
    • Constructor Detail

      • LARGE_INTEGER

        public LARGE_INTEGER​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.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 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​(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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.