Class LLVMOrcCSymbolsList

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

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

Layout


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

    • SIZEOF

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

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

      public static final int SYMBOLS
      The struct member offsets.
    • LENGTH

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

    • LLVMOrcCSymbolsList

      public LLVMOrcCSymbolsList(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<LLVMOrcCSymbolsList>
    • 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.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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

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

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

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

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

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

      public static @Nullable LLVMOrcCSymbolsList.Buffer createSafe(long address, int capacity)
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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