Package org.lwjgl.llvm
Class LLVMJITEvaluatedSymbol
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMJITEvaluatedSymbol
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LLVMJITEvaluatedSymbol extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRepresents an evaluated symbol address and flags.Layout
struct LLVMJITEvaluatedSymbol { LLVMOrcExecutorAddress Address;LLVMJITSymbolFlagsFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMJITEvaluatedSymbol.BufferAn array ofLLVMJITEvaluatedSymbolstructs.
-
Constructor Summary
Constructors Constructor Description LLVMJITEvaluatedSymbol(java.nio.ByteBuffer container)Creates aLLVMJITEvaluatedSymbolinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longAddress()LLVMJITEvaluatedSymbolAddress(long value)Sets the specified value to theAddressfield.static LLVMJITEvaluatedSymbolcalloc()Returns a newLLVMJITEvaluatedSymbolinstance allocated withmemCalloc.static LLVMJITEvaluatedSymbol.Buffercalloc(int capacity)Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withmemCalloc.static LLVMJITEvaluatedSymbol.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITEvaluatedSymbolcalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITEvaluatedSymbolinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITEvaluatedSymbolcreate()Returns a newLLVMJITEvaluatedSymbolinstance allocated withBufferUtils.static LLVMJITEvaluatedSymbol.Buffercreate(int capacity)Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withBufferUtils.static LLVMJITEvaluatedSymbolcreate(long address)Returns a newLLVMJITEvaluatedSymbolinstance for the specified memory address.static LLVMJITEvaluatedSymbol.Buffercreate(long address, int capacity)Create aLLVMJITEvaluatedSymbol.Bufferinstance at the specified memory.static LLVMJITEvaluatedSymbolcreateSafe(long address)static LLVMJITEvaluatedSymbol.BuffercreateSafe(long address, int capacity)LLVMJITSymbolFlagsFlags()LLVMJITEvaluatedSymbolFlags(java.util.function.Consumer<LLVMJITSymbolFlags> consumer)Passes theFlagsfield to the specifiedConsumer.LLVMJITEvaluatedSymbolFlags(LLVMJITSymbolFlags value)Copies the specifiedLLVMJITSymbolFlagsto theFlagsfield.static LLVMJITEvaluatedSymbolmalloc()Returns a newLLVMJITEvaluatedSymbolinstance allocated withmemAlloc.static LLVMJITEvaluatedSymbol.Buffermalloc(int capacity)Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withmemAlloc.static LLVMJITEvaluatedSymbol.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated on the specifiedMemoryStack.static LLVMJITEvaluatedSymbolmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITEvaluatedSymbolinstance allocated on the specifiedMemoryStack.static longnAddress(long struct)Unsafe version ofAddress().static voidnAddress(long struct, long value)Unsafe version ofAddress.static LLVMJITSymbolFlagsnFlags(long struct)Unsafe version ofFlags().static voidnFlags(long struct, LLVMJITSymbolFlags value)Unsafe version ofFlags.LLVMJITEvaluatedSymbolset(long Address, LLVMJITSymbolFlags Flags)Initializes this struct with the specified values.LLVMJITEvaluatedSymbolset(LLVMJITEvaluatedSymbol src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
LLVMJITEvaluatedSymbol
public LLVMJITEvaluatedSymbol(java.nio.ByteBuffer container)
Creates aLLVMJITEvaluatedSymbolinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
Address
public long Address()
- Returns:
- the value of the
Addressfield.
-
Flags
public LLVMJITSymbolFlags Flags()
- Returns:
- a
LLVMJITSymbolFlagsview of theFlagsfield.
-
Address
public LLVMJITEvaluatedSymbol Address(long value)
Sets the specified value to theAddressfield.
-
Flags
public LLVMJITEvaluatedSymbol Flags(LLVMJITSymbolFlags value)
Copies the specifiedLLVMJITSymbolFlagsto theFlagsfield.
-
Flags
public LLVMJITEvaluatedSymbol Flags(java.util.function.Consumer<LLVMJITSymbolFlags> consumer)
Passes theFlagsfield to the specifiedConsumer.
-
set
public LLVMJITEvaluatedSymbol set(long Address, LLVMJITSymbolFlags Flags)
Initializes this struct with the specified values.
-
set
public LLVMJITEvaluatedSymbol set(LLVMJITEvaluatedSymbol src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LLVMJITEvaluatedSymbol malloc()
Returns a newLLVMJITEvaluatedSymbolinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LLVMJITEvaluatedSymbol calloc()
Returns a newLLVMJITEvaluatedSymbolinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LLVMJITEvaluatedSymbol create()
Returns a newLLVMJITEvaluatedSymbolinstance allocated withBufferUtils.
-
create
public static LLVMJITEvaluatedSymbol create(long address)
Returns a newLLVMJITEvaluatedSymbolinstance for the specified memory address.
-
createSafe
@Nullable public static LLVMJITEvaluatedSymbol createSafe(long address)
-
malloc
public static LLVMJITEvaluatedSymbol.Buffer malloc(int capacity)
Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LLVMJITEvaluatedSymbol.Buffer calloc(int capacity)
Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITEvaluatedSymbol.Buffer create(int capacity)
Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITEvaluatedSymbol.Buffer create(long address, int capacity)
Create aLLVMJITEvaluatedSymbol.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LLVMJITEvaluatedSymbol.Buffer createSafe(long address, int capacity)
-
malloc
public static LLVMJITEvaluatedSymbol malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITEvaluatedSymbolinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LLVMJITEvaluatedSymbol calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITEvaluatedSymbolinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LLVMJITEvaluatedSymbol.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LLVMJITEvaluatedSymbol.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITEvaluatedSymbol.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nAddress
public static long nAddress(long struct)
Unsafe version ofAddress().
-
nFlags
public static LLVMJITSymbolFlags nFlags(long struct)
Unsafe version ofFlags().
-
nAddress
public static void nAddress(long struct, long value)Unsafe version ofAddress.
-
nFlags
public static void nFlags(long struct, LLVMJITSymbolFlags value)Unsafe version ofFlags.
-
-