Package org.lwjgl.llvm
Class LLVMOpInfo1
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMOpInfo1
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class LLVMOpInfo1 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct LLVMOpInfo1 {
struct LLVMOpInfoSymbol1
AddSymbol;struct LLVMOpInfoSymbol1
SubtractSymbol; uint64_t Value; uint64_t VariantKind; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMOpInfo1.Buffer
An array ofLLVMOpInfo1
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ADDSYMBOL
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
SUBTRACTSYMBOL
VALUE
VARIANTKINDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description LLVMOpInfo1(java.nio.ByteBuffer container)
Creates aLLVMOpInfo1
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LLVMOpInfoSymbol1
AddSymbol()
Returns aLLVMOpInfoSymbol1
view of theAddSymbol
field.LLVMOpInfo1
AddSymbol(java.util.function.Consumer<LLVMOpInfoSymbol1> consumer)
Passes theAddSymbol
field to the specifiedConsumer
.LLVMOpInfo1
AddSymbol(LLVMOpInfoSymbol1 value)
Copies the specifiedLLVMOpInfoSymbol1
to theAddSymbol
field.static LLVMOpInfo1
calloc()
Returns a newLLVMOpInfo1
instance allocated withmemCalloc
.static LLVMOpInfo1.Buffer
calloc(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemCalloc
.static LLVMOpInfo1
callocStack()
Returns a newLLVMOpInfo1
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1.Buffer
callocStack(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1
create()
Returns a newLLVMOpInfo1
instance allocated withBufferUtils
.static LLVMOpInfo1.Buffer
create(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withBufferUtils
.static LLVMOpInfo1
create(long address)
Returns a newLLVMOpInfo1
instance for the specified memory address.static LLVMOpInfo1.Buffer
create(long address, int capacity)
Create aLLVMOpInfo1.Buffer
instance at the specified memory.static LLVMOpInfo1
createSafe(long address)
static LLVMOpInfo1.Buffer
createSafe(long address, int capacity)
static LLVMOpInfo1
malloc()
Returns a newLLVMOpInfo1
instance allocated withmemAlloc
.static LLVMOpInfo1.Buffer
malloc(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemAlloc
.static LLVMOpInfo1
mallocStack()
Returns a newLLVMOpInfo1
instance allocated on the thread-localMemoryStack
.static LLVMOpInfo1.Buffer
mallocStack(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the thread-localMemoryStack
.static LLVMOpInfo1.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
.static LLVMOpInfo1
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
.static LLVMOpInfoSymbol1
nAddSymbol(long struct)
Unsafe version ofAddSymbol()
.static void
nAddSymbol(long struct, LLVMOpInfoSymbol1 value)
Unsafe version ofAddSymbol
.static LLVMOpInfoSymbol1
nSubtractSymbol(long struct)
Unsafe version ofSubtractSymbol()
.static void
nSubtractSymbol(long struct, LLVMOpInfoSymbol1 value)
Unsafe version ofSubtractSymbol
.static long
nValue(long struct)
Unsafe version ofValue()
.static void
nValue(long struct, long value)
Unsafe version ofValue
.static long
nVariantKind(long struct)
Unsafe version ofVariantKind()
.static void
nVariantKind(long struct, long value)
Unsafe version ofVariantKind
.LLVMOpInfo1
set(LLVMOpInfo1 src)
Copies the specified struct data to this struct.LLVMOpInfo1
set(LLVMOpInfoSymbol1 AddSymbol, LLVMOpInfoSymbol1 SubtractSymbol, long Value, long VariantKind)
Initializes this struct with the specified values.int
sizeof()
LLVMOpInfoSymbol1
SubtractSymbol()
Returns aLLVMOpInfoSymbol1
view of theSubtractSymbol
field.LLVMOpInfo1
SubtractSymbol(java.util.function.Consumer<LLVMOpInfoSymbol1> consumer)
Passes theSubtractSymbol
field to the specifiedConsumer
.LLVMOpInfo1
SubtractSymbol(LLVMOpInfoSymbol1 value)
Copies the specifiedLLVMOpInfoSymbol1
to theSubtractSymbol
field.long
Value()
Returns the value of theValue
field.LLVMOpInfo1
Value(long value)
Sets the specified value to theValue
field.long
VariantKind()
Returns the value of theVariantKind
field.LLVMOpInfo1
VariantKind(long value)
Sets the specified value to theVariantKind
field.
-
-
-
Constructor Detail
-
LLVMOpInfo1
public LLVMOpInfo1(java.nio.ByteBuffer container)
Creates aLLVMOpInfo1
instance at the current position of the specifiedByteBuffer
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
AddSymbol
public LLVMOpInfoSymbol1 AddSymbol()
Returns aLLVMOpInfoSymbol1
view of theAddSymbol
field.
-
SubtractSymbol
public LLVMOpInfoSymbol1 SubtractSymbol()
Returns aLLVMOpInfoSymbol1
view of theSubtractSymbol
field.
-
Value
public long Value()
Returns the value of theValue
field.
-
VariantKind
public long VariantKind()
Returns the value of theVariantKind
field.
-
AddSymbol
public LLVMOpInfo1 AddSymbol(LLVMOpInfoSymbol1 value)
Copies the specifiedLLVMOpInfoSymbol1
to theAddSymbol
field.
-
AddSymbol
public LLVMOpInfo1 AddSymbol(java.util.function.Consumer<LLVMOpInfoSymbol1> consumer)
Passes theAddSymbol
field to the specifiedConsumer
.
-
SubtractSymbol
public LLVMOpInfo1 SubtractSymbol(LLVMOpInfoSymbol1 value)
Copies the specifiedLLVMOpInfoSymbol1
to theSubtractSymbol
field.
-
SubtractSymbol
public LLVMOpInfo1 SubtractSymbol(java.util.function.Consumer<LLVMOpInfoSymbol1> consumer)
Passes theSubtractSymbol
field to the specifiedConsumer
.
-
Value
public LLVMOpInfo1 Value(long value)
Sets the specified value to theValue
field.
-
VariantKind
public LLVMOpInfo1 VariantKind(long value)
Sets the specified value to theVariantKind
field.
-
set
public LLVMOpInfo1 set(LLVMOpInfoSymbol1 AddSymbol, LLVMOpInfoSymbol1 SubtractSymbol, long Value, long VariantKind)
Initializes this struct with the specified values.
-
set
public LLVMOpInfo1 set(LLVMOpInfo1 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static LLVMOpInfo1 malloc()
Returns a newLLVMOpInfo1
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static LLVMOpInfo1 calloc()
Returns a newLLVMOpInfo1
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static LLVMOpInfo1 create()
Returns a newLLVMOpInfo1
instance allocated withBufferUtils
.
-
create
public static LLVMOpInfo1 create(long address)
Returns a newLLVMOpInfo1
instance for the specified memory address.
-
createSafe
@Nullable public static LLVMOpInfo1 createSafe(long address)
-
malloc
public static LLVMOpInfo1.Buffer malloc(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static LLVMOpInfo1.Buffer calloc(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static LLVMOpInfo1.Buffer create(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static LLVMOpInfo1.Buffer create(long address, int capacity)
Create aLLVMOpInfo1.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LLVMOpInfo1.Buffer createSafe(long address, int capacity)
-
mallocStack
public static LLVMOpInfo1 mallocStack()
Returns a newLLVMOpInfo1
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static LLVMOpInfo1 callocStack()
Returns a newLLVMOpInfo1
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static LLVMOpInfo1 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static LLVMOpInfo1 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static LLVMOpInfo1.Buffer mallocStack(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static LLVMOpInfo1.Buffer callocStack(int capacity)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static LLVMOpInfo1.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static LLVMOpInfo1.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nAddSymbol
public static LLVMOpInfoSymbol1 nAddSymbol(long struct)
Unsafe version ofAddSymbol()
.
-
nSubtractSymbol
public static LLVMOpInfoSymbol1 nSubtractSymbol(long struct)
Unsafe version ofSubtractSymbol()
.
-
nValue
public static long nValue(long struct)
Unsafe version ofValue()
.
-
nVariantKind
public static long nVariantKind(long struct)
Unsafe version ofVariantKind()
.
-
nAddSymbol
public static void nAddSymbol(long struct, LLVMOpInfoSymbol1 value)
Unsafe version ofAddSymbol
.
-
nSubtractSymbol
public static void nSubtractSymbol(long struct, LLVMOpInfoSymbol1 value)
Unsafe version ofSubtractSymbol
.
-
nValue
public static void nValue(long struct, long value)
Unsafe version ofValue
.
-
nVariantKind
public static void nVariantKind(long struct, long value)
Unsafe version ofVariantKind
.
-
-