Class LLVMOrcCLookupSetElement

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<LLVMOrcCLookupSetElement>
org.lwjgl.llvm.LLVMOrcCLookupSetElement
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class LLVMOrcCLookupSetElement extends org.lwjgl.system.Struct<LLVMOrcCLookupSetElement> implements org.lwjgl.system.NativeResource
An element type for a symbol lookup set.

Layout


 struct LLVMOrcCLookupSetElement {
     LLVMOrcSymbolStringPoolEntryRef Name;
     LLVMOrcSymbolLookupFlags LookupFlags;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NAME
      The struct member offsets.
    • LOOKUPFLAGS

      public static final int LOOKUPFLAGS
      The struct member offsets.
  • Constructor Details

    • LLVMOrcCLookupSetElement

      public LLVMOrcCLookupSetElement(ByteBuffer container)
      Creates a LLVMOrcCLookupSetElement 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<LLVMOrcCLookupSetElement>
    • Name

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

      public int LookupFlags()
      Returns:
      the value of the LookupFlags field.
    • Name

      public LLVMOrcCLookupSetElement Name(long value)
      Sets the specified value to the Name field.
    • LookupFlags

      public LLVMOrcCLookupSetElement LookupFlags(int value)
      Sets the specified value to the LookupFlags field.
    • set

      public LLVMOrcCLookupSetElement set(long Name, int LookupFlags)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

      public static LLVMOrcCLookupSetElement.Buffer create(int capacity)
      Returns a new LLVMOrcCLookupSetElement.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

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

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

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

      public static LLVMOrcCLookupSetElement.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new LLVMOrcCLookupSetElement.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nName

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

      public static int nLookupFlags(long struct)
      Unsafe version of LookupFlags().
    • nName

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

      public static void nLookupFlags(long struct, int value)
      Unsafe version of LookupFlags.
    • validate

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