Class LibDivideU64

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class LibDivideU64
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct libdivide_u64_t {
         uint64_t magic;
         uint8_t more;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MAGIC, MORE

        The struct member offsets.
    • Constructor Detail

      • LibDivideU64

        public LibDivideU64​(java.nio.ByteBuffer container)
        Creates a LibDivideU64 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
      • magic

        public long magic()
        Returns:
        the value of the magic field.
      • more

        public byte more()
        Returns:
        the value of the more field.
      • magic

        public LibDivideU64 magic​(long value)
        Sets the specified value to the magic field.
      • more

        public LibDivideU64 more​(byte value)
        Sets the specified value to the more field.
      • set

        public LibDivideU64 set​(long magic,
                                byte more)
        Initializes this struct with the specified values.
      • set

        public LibDivideU64 set​(LibDivideU64 src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static LibDivideU64 malloc()
        Returns a new LibDivideU64 instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

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

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

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

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

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

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

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

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

        @Deprecated
        public static LibDivideU64 mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static LibDivideU64 callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

        public static LibDivideU64 calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new LibDivideU64 instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static LibDivideU64.Buffer malloc​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new LibDivideU64.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static LibDivideU64.Buffer calloc​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new LibDivideU64.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
      • nmagic

        public static long nmagic​(long struct)
        Unsafe version of magic().
      • nmore

        public static byte nmore​(long struct)
        Unsafe version of more().
      • nmagic

        public static void nmagic​(long struct,
                                  long value)
        Unsafe version of magic.
      • nmore

        public static void nmore​(long struct,
                                 byte value)
        Unsafe version of more.