Class LLVMOrcCSymbolsList

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

    public class LLVMOrcCSymbolsList
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Represents a list of LLVMOrcSymbolStringPoolEntryRef and the associated length.

    Layout

    
     struct LLVMOrcCSymbolsList {
         LLVMOrcSymbolStringPoolEntryRef * Symbols;
         size_t Length;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SYMBOLS, LENGTH

        The struct member offsets.
    • Constructor Detail

      • LLVMOrcCSymbolsList

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

        public org.lwjgl.PointerBuffer Symbols()
        Returns:
        a PointerBuffer view of the data pointed to by the Symbols field.
      • Length

        public long Length()
        Returns:
        the value of the Length field.
      • Symbols

        public LLVMOrcCSymbolsList Symbols​(org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the Symbols field.
      • malloc

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

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

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

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

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

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

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

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

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

        public static org.lwjgl.PointerBuffer nSymbols​(long struct)
        Unsafe version of Symbols.
      • nLength

        public static long nLength​(long struct)
        Unsafe version of Length().
      • nSymbols

        public static void nSymbols​(long struct,
                                    org.lwjgl.PointerBuffer value)
        Unsafe version of Symbols.
      • nLength

        public static void nLength​(long struct,
                                   long value)
        Sets the specified value to the Length field of the specified struct.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate