Package org.lwjgl.llvm
Class CXSourceLocation
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXSourceLocation
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CXSourceLocation extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Identifies a specific source location within a translation unit.Use
getExpansionLocation
orgetSpellingLocation
to map a source location to a particular file, line, and column.Layout
struct CXSourceLocation { void const * ptr_data[2]; unsigned int_data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXSourceLocation.Buffer
An array ofCXSourceLocation
structs.
-
Constructor Summary
Constructors Constructor Description CXSourceLocation(java.nio.ByteBuffer container)
Creates aCXSourceLocation
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CXSourceLocation
calloc()
Returns a newCXSourceLocation
instance allocated withmemCalloc
.static CXSourceLocation.Buffer
calloc(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withmemCalloc
.static CXSourceLocation
callocStack()
Returns a newCXSourceLocation
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXSourceLocation.Buffer
callocStack(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXSourceLocation.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXSourceLocation
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXSourceLocation
create()
Returns a newCXSourceLocation
instance allocated withBufferUtils
.static CXSourceLocation.Buffer
create(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withBufferUtils
.static CXSourceLocation
create(long address)
Returns a newCXSourceLocation
instance for the specified memory address.static CXSourceLocation.Buffer
create(long address, int capacity)
Create aCXSourceLocation.Buffer
instance at the specified memory.static CXSourceLocation
createSafe(long address)
static CXSourceLocation.Buffer
createSafe(long address, int capacity)
int
int_data()
Returns the value of theint_data
field.static CXSourceLocation
malloc()
Returns a newCXSourceLocation
instance allocated withmemAlloc
.static CXSourceLocation.Buffer
malloc(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withmemAlloc
.static CXSourceLocation
mallocStack()
Returns a newCXSourceLocation
instance allocated on the thread-localMemoryStack
.static CXSourceLocation.Buffer
mallocStack(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated on the thread-localMemoryStack
.static CXSourceLocation.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Buffer
instance allocated on the specifiedMemoryStack
.static CXSourceLocation
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation
instance allocated on the specifiedMemoryStack
.static int
nint_data(long struct)
Unsafe version ofint_data()
.static org.lwjgl.PointerBuffer
nptr_data(long struct)
Unsafe version ofptr_data()
.static long
nptr_data(long struct, int index)
Unsafe version ofptr_data
.org.lwjgl.PointerBuffer
ptr_data()
Returns aPointerBuffer
view of theptr_data
field.long
ptr_data(int index)
Returns the value at the specified index of theptr_data
field.int
sizeof()
-
-
-
Constructor Detail
-
CXSourceLocation
public CXSourceLocation(java.nio.ByteBuffer container)
Creates aCXSourceLocation
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
-
ptr_data
public org.lwjgl.PointerBuffer ptr_data()
Returns aPointerBuffer
view of theptr_data
field.
-
ptr_data
public long ptr_data(int index)
Returns the value at the specified index of theptr_data
field.
-
int_data
public int int_data()
Returns the value of theint_data
field.
-
malloc
public static CXSourceLocation malloc()
Returns a newCXSourceLocation
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXSourceLocation calloc()
Returns a newCXSourceLocation
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXSourceLocation create()
Returns a newCXSourceLocation
instance allocated withBufferUtils
.
-
create
public static CXSourceLocation create(long address)
Returns a newCXSourceLocation
instance for the specified memory address.
-
createSafe
@Nullable public static CXSourceLocation createSafe(long address)
-
malloc
public static CXSourceLocation.Buffer malloc(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXSourceLocation.Buffer calloc(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXSourceLocation.Buffer create(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXSourceLocation.Buffer create(long address, int capacity)
Create aCXSourceLocation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXSourceLocation.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXSourceLocation mallocStack()
Returns a newCXSourceLocation
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXSourceLocation callocStack()
Returns a newCXSourceLocation
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXSourceLocation mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXSourceLocation callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXSourceLocation.Buffer mallocStack(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXSourceLocation.Buffer callocStack(int capacity)
Returns a newCXSourceLocation.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXSourceLocation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXSourceLocation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nptr_data
public static org.lwjgl.PointerBuffer nptr_data(long struct)
Unsafe version ofptr_data()
.
-
nptr_data
public static long nptr_data(long struct, int index)
Unsafe version ofptr_data
.
-
nint_data
public static int nint_data(long struct)
Unsafe version ofint_data()
.
-
-