Class LLVMJITCSymbolMapPair

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

    public class LLVMJITCSymbolMapPair
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Represents a pair of a symbol name and an evaluated symbol.

    Layout

    
     struct LLVMJITCSymbolMapPair {
         LLVMOrcSymbolStringPoolEntryRef Name;
         LLVMJITEvaluatedSymbol Sym;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NAME, SYM

        The struct member offsets.
    • Constructor Detail

      • LLVMJITCSymbolMapPair

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

        public long Name()
        Returns:
        the value of the Name field.
      • malloc

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

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

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

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

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

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

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

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

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

        public static long nName​(long struct)
        Unsafe version of Name().
      • nName

        public static void nName​(long struct,
                                 long value)
        Unsafe version of Name.
      • validate

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