Class CXIdxContainerInfo

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

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

    Layout

    
     struct CXIdxContainerInfo {
         CXCursor cursor;
     }
    • Field Detail

      • SIZEOF

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

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

        public static final int CURSOR
        The struct member offsets.
    • Constructor Detail

      • CXIdxContainerInfo

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

        public CXCursor cursor()
        Returns a CXCursor view of the cursor field.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static CXCursor ncursor​(long struct)
        Unsafe version of cursor().