Package org.lwjgl.llvm
Class LLVMJITCSymbolMapPair
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.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.NativeResourceRepresents a pair of a symbol name and an evaluated symbol.Layout
struct LLVMJITCSymbolMapPair { LLVMOrcSymbolStringPoolEntryRef Name;LLVMJITEvaluatedSymbolSym; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMJITCSymbolMapPair.BufferAn array ofLLVMJITCSymbolMapPairstructs.
-
Constructor Summary
Constructors Constructor Description LLVMJITCSymbolMapPair(java.nio.ByteBuffer container)Creates aLLVMJITCSymbolMapPairinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LLVMJITCSymbolMapPaircalloc()Returns a newLLVMJITCSymbolMapPairinstance allocated withmemCalloc.static LLVMJITCSymbolMapPair.Buffercalloc(int capacity)Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withmemCalloc.static LLVMJITCSymbolMapPair.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITCSymbolMapPaircalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITCSymbolMapPairinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITCSymbolMapPaircreate()Returns a newLLVMJITCSymbolMapPairinstance allocated withBufferUtils.static LLVMJITCSymbolMapPair.Buffercreate(int capacity)Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withBufferUtils.static LLVMJITCSymbolMapPaircreate(long address)Returns a newLLVMJITCSymbolMapPairinstance for the specified memory address.static LLVMJITCSymbolMapPair.Buffercreate(long address, int capacity)Create aLLVMJITCSymbolMapPair.Bufferinstance at the specified memory.static LLVMJITCSymbolMapPaircreateSafe(long address)static LLVMJITCSymbolMapPair.BuffercreateSafe(long address, int capacity)static LLVMJITCSymbolMapPairmalloc()Returns a newLLVMJITCSymbolMapPairinstance allocated withmemAlloc.static LLVMJITCSymbolMapPair.Buffermalloc(int capacity)Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withmemAlloc.static LLVMJITCSymbolMapPair.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated on the specifiedMemoryStack.static LLVMJITCSymbolMapPairmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITCSymbolMapPairinstance allocated on the specifiedMemoryStack.longName()LLVMJITCSymbolMapPairName(long value)Sets the specified value to theNamefield.static longnName(long struct)Unsafe version ofName().static voidnName(long struct, long value)Unsafe version ofName.static LLVMJITEvaluatedSymbolnSym(long struct)Unsafe version ofSym().static voidnSym(long struct, LLVMJITEvaluatedSymbol value)Unsafe version ofSym.LLVMJITCSymbolMapPairset(long Name, LLVMJITEvaluatedSymbol Sym)Initializes this struct with the specified values.LLVMJITCSymbolMapPairset(LLVMJITCSymbolMapPair src)Copies the specified struct data to this struct.intsizeof()LLVMJITEvaluatedSymbolSym()LLVMJITCSymbolMapPairSym(java.util.function.Consumer<LLVMJITEvaluatedSymbol> consumer)Passes theSymfield to the specifiedConsumer.LLVMJITCSymbolMapPairSym(LLVMJITEvaluatedSymbol value)Copies the specifiedLLVMJITEvaluatedSymbolto theSymfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
LLVMJITCSymbolMapPair
public LLVMJITCSymbolMapPair(java.nio.ByteBuffer container)
Creates aLLVMJITCSymbolMapPairinstance 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
-
Name
public long Name()
- Returns:
- the value of the
Namefield.
-
Sym
public LLVMJITEvaluatedSymbol Sym()
- Returns:
- a
LLVMJITEvaluatedSymbolview of theSymfield.
-
Name
public LLVMJITCSymbolMapPair Name(long value)
Sets the specified value to theNamefield.
-
Sym
public LLVMJITCSymbolMapPair Sym(LLVMJITEvaluatedSymbol value)
Copies the specifiedLLVMJITEvaluatedSymbolto theSymfield.
-
Sym
public LLVMJITCSymbolMapPair Sym(java.util.function.Consumer<LLVMJITEvaluatedSymbol> consumer)
Passes theSymfield to the specifiedConsumer.
-
set
public LLVMJITCSymbolMapPair set(long Name, LLVMJITEvaluatedSymbol Sym)
Initializes this struct with the specified values.
-
set
public LLVMJITCSymbolMapPair set(LLVMJITCSymbolMapPair src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LLVMJITCSymbolMapPair malloc()
Returns a newLLVMJITCSymbolMapPairinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LLVMJITCSymbolMapPair calloc()
Returns a newLLVMJITCSymbolMapPairinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LLVMJITCSymbolMapPair create()
Returns a newLLVMJITCSymbolMapPairinstance allocated withBufferUtils.
-
create
public static LLVMJITCSymbolMapPair create(long address)
Returns a newLLVMJITCSymbolMapPairinstance for the specified memory address.
-
createSafe
@Nullable public static LLVMJITCSymbolMapPair createSafe(long address)
-
malloc
public static LLVMJITCSymbolMapPair.Buffer malloc(int capacity)
Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LLVMJITCSymbolMapPair.Buffer calloc(int capacity)
Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITCSymbolMapPair.Buffer create(int capacity)
Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITCSymbolMapPair.Buffer create(long address, int capacity)
Create aLLVMJITCSymbolMapPair.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LLVMJITCSymbolMapPair.Buffer createSafe(long address, int capacity)
-
malloc
public static LLVMJITCSymbolMapPair malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITCSymbolMapPairinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LLVMJITCSymbolMapPair calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITCSymbolMapPairinstance allocated on the specifiedMemoryStackand 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 newLLVMJITCSymbolMapPair.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LLVMJITCSymbolMapPair.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITCSymbolMapPair.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nName
public static long nName(long struct)
Unsafe version ofName().
-
nSym
public static LLVMJITEvaluatedSymbol nSym(long struct)
Unsafe version ofSym().
-
nName
public static void nName(long struct, long value)Unsafe version ofName.
-
nSym
public static void nSym(long struct, LLVMJITEvaluatedSymbol value)Unsafe version ofSym.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-