Class LibDivideS32

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

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

    Layout

    
     struct libdivide_s32_t {
         int32_t magic;
         uint8_t more;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LibDivideS32.Buffer
      An array of LibDivideS32 structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int MAGIC
      MORE
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      LibDivideS32​(java.nio.ByteBuffer container)
      Creates a LibDivideS32 instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MAGIC, MORE

        The struct member offsets.
    • Constructor Detail

      • LibDivideS32

        public LibDivideS32​(java.nio.ByteBuffer container)
        Creates a LibDivideS32 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 int magic()
        Returns the value of the magic field.
      • more

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

        public LibDivideS32 magic​(int value)
        Sets the specified value to the magic field.
      • more

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

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

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

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

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

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

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

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

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

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

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

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

        public static LibDivideS32 mallocStack()
        Returns a new LibDivideS32 instance allocated on the thread-local MemoryStack.
      • callocStack

        public static LibDivideS32 callocStack()
        Returns a new LibDivideS32 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

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

        public static LibDivideS32.Buffer mallocStack​(int capacity)
        Returns a new LibDivideS32.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static LibDivideS32.Buffer callocStack​(int capacity)
        Returns a new LibDivideS32.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

        public static LibDivideS32.Buffer callocStack​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new LibDivideS32.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 int 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,
                                  int value)
        Unsafe version of magic.
      • nmore

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