Class LLVMJITSymbolFlags

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class LLVMJITSymbolFlags extends Struct<LLVMJITSymbolFlags> implements NativeResource

 struct LLVMJITSymbolFlags {
     uint8_t GenericFlags;
     uint8_t TargetFlags;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int GENERICFLAGS
      The struct member offsets.
    • TARGETFLAGS

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

    • LLVMJITSymbolFlags

      public LLVMJITSymbolFlags(ByteBuffer container)
      Creates a LLVMJITSymbolFlags 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<LLVMJITSymbolFlags>
    • GenericFlags

      public byte GenericFlags()
      Returns:
      the value of the GenericFlags field.
    • TargetFlags

      public byte TargetFlags()
      Returns:
      the value of the TargetFlags field.
    • GenericFlags

      public LLVMJITSymbolFlags GenericFlags(byte value)
      Sets the specified value to the GenericFlags field.
    • TargetFlags

      public LLVMJITSymbolFlags TargetFlags(byte value)
      Sets the specified value to the TargetFlags field.
    • set

      public LLVMJITSymbolFlags set(byte GenericFlags, byte TargetFlags)
      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 LLVMJITSymbolFlags malloc()
      Returns a new LLVMJITSymbolFlags instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static LLVMJITSymbolFlags.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new LLVMJITSymbolFlags.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
    • nGenericFlags

      public static byte nGenericFlags(long struct)
      Unsafe version of GenericFlags().
    • nTargetFlags

      public static byte nTargetFlags(long struct)
      Unsafe version of TargetFlags().
    • nGenericFlags

      public static void nGenericFlags(long struct, byte value)
      Unsafe version of GenericFlags.
    • nTargetFlags

      public static void nTargetFlags(long struct, byte value)
      Unsafe version of TargetFlags.