Package org.lwjgl.llvm
Class LLVMOpInfoSymbol1
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct LLVMOpInfoSymbol1 {
uint64_t Present;
char const * Name;
uint64_t Value;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLLVMOpInfoSymbol1(ByteBuffer container) Creates aLLVMOpInfoSymbol1instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LLVMOpInfoSymbol1calloc()Returns a newLLVMOpInfoSymbol1instance allocated withmemCalloc.static LLVMOpInfoSymbol1.Buffercalloc(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemCalloc.static LLVMOpInfoSymbol1.Buffercalloc(int capacity, MemoryStack stack) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfoSymbol1calloc(MemoryStack stack) Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfoSymbol1create()Returns a newLLVMOpInfoSymbol1instance allocated withBufferUtils.static LLVMOpInfoSymbol1.Buffercreate(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withBufferUtils.static LLVMOpInfoSymbol1create(long address) Returns a newLLVMOpInfoSymbol1instance for the specified memory address.static LLVMOpInfoSymbol1.Buffercreate(long address, int capacity) Create aLLVMOpInfoSymbol1.Bufferinstance at the specified memory.static @Nullable LLVMOpInfoSymbol1createSafe(long address) static @Nullable LLVMOpInfoSymbol1.BuffercreateSafe(long address, int capacity) static LLVMOpInfoSymbol1malloc()Returns a newLLVMOpInfoSymbol1instance allocated withmemAlloc.static LLVMOpInfoSymbol1.Buffermalloc(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemAlloc.static LLVMOpInfoSymbol1.Buffermalloc(int capacity, MemoryStack stack) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStack.static LLVMOpInfoSymbol1malloc(MemoryStack stack) Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStack.@Nullable ByteBufferName()Name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theNamefield.@Nullable Stringstatic @Nullable ByteBuffernName(long struct) Unsafe version ofName().static voidnName(long struct, @Nullable ByteBuffer value) Unsafe version ofName.static @Nullable StringnNameString(long struct) Unsafe version ofNameString().static longnPresent(long struct) Unsafe version ofPresent().static voidnPresent(long struct, long value) Unsafe version ofPresent.static longnValue(long struct) Unsafe version ofValue().static voidnValue(long struct, long value) Unsafe version ofValue.longPresent()Present(long value) Sets the specified value to thePresentfield.set(long Present, @Nullable ByteBuffer Name, long Value) Initializes this struct with the specified values.set(LLVMOpInfoSymbol1 src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longValue()Value(long value) Sets the specified value to theValuefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PRESENT
public static final int PRESENTThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
VALUE
public static final int VALUEThe struct member offsets.
-
-
Constructor Details
-
LLVMOpInfoSymbol1
Creates aLLVMOpInfoSymbol1instance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LLVMOpInfoSymbol1>
-
Present
public long Present()- Returns:
- the value of the
Presentfield.
-
Name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theNamefield.
-
NameString
- Returns:
- the null-terminated string pointed to by the
Namefield.
-
Value
public long Value()- Returns:
- the value of the
Valuefield.
-
Present
Sets the specified value to thePresentfield. -
Name
Sets the address of the specified encoded string to theNamefield. -
Value
Sets the specified value to theValuefield. -
set
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
Returns a newLLVMOpInfoSymbol1instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLLVMOpInfoSymbol1instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLLVMOpInfoSymbol1instance allocated withBufferUtils. -
create
Returns a newLLVMOpInfoSymbol1instance for the specified memory address. -
createSafe
-
malloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLLVMOpInfoSymbol1.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nPresent
public static long nPresent(long struct) Unsafe version ofPresent(). -
nName
Unsafe version ofName(). -
nNameString
Unsafe version ofNameString(). -
nValue
public static long nValue(long struct) Unsafe version ofValue(). -
nPresent
public static void nPresent(long struct, long value) Unsafe version ofPresent. -
nName
Unsafe version ofName. -
nValue
public static void nValue(long struct, long value) Unsafe version ofValue.
-