Package org.lwjgl.llvm
Class LLVMJITSymbolFlags
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMJITSymbolFlags
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LLVMJITSymbolFlags extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRepresents the linkage flags for a symbol definition.Layout
struct LLVMJITSymbolFlags { uint8_t GenericFlags; uint8_t TargetFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMJITSymbolFlags.BufferAn array ofLLVMJITSymbolFlagsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intGENERICFLAGSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTARGETFLAGSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description LLVMJITSymbolFlags(java.nio.ByteBuffer container)Creates aLLVMJITSymbolFlagsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LLVMJITSymbolFlagscalloc()Returns a newLLVMJITSymbolFlagsinstance allocated withmemCalloc.static LLVMJITSymbolFlags.Buffercalloc(int capacity)Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withmemCalloc.static LLVMJITSymbolFlags.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITSymbolFlags.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITSymbolFlagscalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITSymbolFlagsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMJITSymbolFlagscreate()Returns a newLLVMJITSymbolFlagsinstance allocated withBufferUtils.static LLVMJITSymbolFlags.Buffercreate(int capacity)Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withBufferUtils.static LLVMJITSymbolFlagscreate(long address)Returns a newLLVMJITSymbolFlagsinstance for the specified memory address.static LLVMJITSymbolFlags.Buffercreate(long address, int capacity)Create aLLVMJITSymbolFlags.Bufferinstance at the specified memory.static LLVMJITSymbolFlagscreateSafe(long address)static LLVMJITSymbolFlags.BuffercreateSafe(long address, int capacity)byteGenericFlags()LLVMJITSymbolFlagsGenericFlags(byte value)Sets the specified value to theGenericFlagsfield.static LLVMJITSymbolFlagsmalloc()Returns a newLLVMJITSymbolFlagsinstance allocated withmemAlloc.static LLVMJITSymbolFlags.Buffermalloc(int capacity)Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withmemAlloc.static LLVMJITSymbolFlags.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITSymbolFlags.Bufferinstance allocated on the specifiedMemoryStack.static LLVMJITSymbolFlagsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMJITSymbolFlagsinstance allocated on the specifiedMemoryStack.static bytenGenericFlags(long struct)Unsafe version ofGenericFlags().static voidnGenericFlags(long struct, byte value)Unsafe version ofGenericFlags.static bytenTargetFlags(long struct)Unsafe version ofTargetFlags().static voidnTargetFlags(long struct, byte value)Unsafe version ofTargetFlags.LLVMJITSymbolFlagsset(byte GenericFlags, byte TargetFlags)Initializes this struct with the specified values.LLVMJITSymbolFlagsset(LLVMJITSymbolFlags src)Copies the specified struct data to this struct.intsizeof()byteTargetFlags()LLVMJITSymbolFlagsTargetFlags(byte value)Sets the specified value to theTargetFlagsfield.
-
-
-
Constructor Detail
-
LLVMJITSymbolFlags
public LLVMJITSymbolFlags(java.nio.ByteBuffer container)
Creates aLLVMJITSymbolFlagsinstance 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
-
GenericFlags
public byte GenericFlags()
- Returns:
- the value of the
GenericFlagsfield.
-
TargetFlags
public byte TargetFlags()
- Returns:
- the value of the
TargetFlagsfield.
-
GenericFlags
public LLVMJITSymbolFlags GenericFlags(byte value)
Sets the specified value to theGenericFlagsfield.
-
TargetFlags
public LLVMJITSymbolFlags TargetFlags(byte value)
Sets the specified value to theTargetFlagsfield.
-
set
public LLVMJITSymbolFlags set(byte GenericFlags, byte TargetFlags)
Initializes this struct with the specified values.
-
set
public LLVMJITSymbolFlags set(LLVMJITSymbolFlags src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LLVMJITSymbolFlags malloc()
Returns a newLLVMJITSymbolFlagsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LLVMJITSymbolFlags calloc()
Returns a newLLVMJITSymbolFlagsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LLVMJITSymbolFlags create()
Returns a newLLVMJITSymbolFlagsinstance allocated withBufferUtils.
-
create
public static LLVMJITSymbolFlags create(long address)
Returns a newLLVMJITSymbolFlagsinstance for the specified memory address.
-
createSafe
@Nullable public static LLVMJITSymbolFlags createSafe(long address)
-
malloc
public static LLVMJITSymbolFlags.Buffer malloc(int capacity)
Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LLVMJITSymbolFlags.Buffer calloc(int capacity)
Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITSymbolFlags.Buffer create(int capacity)
Returns a newLLVMJITSymbolFlags.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMJITSymbolFlags.Buffer create(long address, int capacity)
Create aLLVMJITSymbolFlags.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LLVMJITSymbolFlags.Buffer createSafe(long address, int capacity)
-
malloc
public static LLVMJITSymbolFlags malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITSymbolFlagsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LLVMJITSymbolFlags calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITSymbolFlagsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LLVMJITSymbolFlags.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITSymbolFlags.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LLVMJITSymbolFlags.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMJITSymbolFlags.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nGenericFlags
public static byte nGenericFlags(long struct)
Unsafe version ofGenericFlags().
-
nTargetFlags
public static byte nTargetFlags(long struct)
Unsafe version ofTargetFlags().
-
nGenericFlags
public static void nGenericFlags(long struct, byte value)Unsafe version ofGenericFlags.
-
nTargetFlags
public static void nTargetFlags(long struct, byte value)Unsafe version ofTargetFlags.
-
-