public class CXSourceLocation
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Use getExpansionLocation or getSpellingLocation to map a source location to a particular file, line, and column.
struct CXSourceLocation {
void const * ptr_data[2];
unsigned int_data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXSourceLocation.Buffer
An array of
CXSourceLocation structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INT_DATA
The struct member offsets.
|
static int |
PTR_DATA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXSourceLocation(java.nio.ByteBuffer container)
Creates a
CXSourceLocation instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXSourceLocation |
calloc()
Returns a new
CXSourceLocation instance allocated with memCalloc. |
static CXSourceLocation.Buffer |
calloc(int capacity)
Returns a new
CXSourceLocation.Buffer instance allocated with memCalloc. |
static CXSourceLocation |
callocStack()
Returns a new
CXSourceLocation instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXSourceLocation.Buffer |
callocStack(int capacity)
Returns a new
CXSourceLocation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXSourceLocation.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceLocation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXSourceLocation |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceLocation instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXSourceLocation |
create()
Returns a new
CXSourceLocation instance allocated with BufferUtils. |
static CXSourceLocation.Buffer |
create(int capacity)
Returns a new
CXSourceLocation.Buffer instance allocated with BufferUtils. |
static CXSourceLocation |
create(long address)
Returns a new
CXSourceLocation instance for the specified memory address. |
static CXSourceLocation.Buffer |
create(long address,
int capacity)
Create a
CXSourceLocation.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 the
int_data field. |
static CXSourceLocation |
malloc()
Returns a new
CXSourceLocation instance allocated with memAlloc. |
static CXSourceLocation.Buffer |
malloc(int capacity)
Returns a new
CXSourceLocation.Buffer instance allocated with memAlloc. |
static CXSourceLocation |
mallocStack()
Returns a new
CXSourceLocation instance allocated on the thread-local MemoryStack. |
static CXSourceLocation.Buffer |
mallocStack(int capacity)
Returns a new
CXSourceLocation.Buffer instance allocated on the thread-local MemoryStack. |
static CXSourceLocation.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceLocation.Buffer instance allocated on the specified MemoryStack. |
static CXSourceLocation |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceLocation instance allocated on the specified MemoryStack. |
static int |
nint_data(long struct)
Unsafe version of
int_data(). |
static org.lwjgl.PointerBuffer |
nptr_data(long struct)
Unsafe version of
ptr_data(). |
static long |
nptr_data(long struct,
int index)
Unsafe version of
ptr_data. |
org.lwjgl.PointerBuffer |
ptr_data()
Returns a
PointerBuffer view of the ptr_data field. |
long |
ptr_data(int index)
Returns the value at the specified index of the
ptr_data field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PTR_DATA
public static final int INT_DATA
public CXSourceLocation(java.nio.ByteBuffer container)
CXSourceLocation instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic org.lwjgl.PointerBuffer ptr_data()
PointerBuffer view of the ptr_data field.public long ptr_data(int index)
ptr_data field.public int int_data()
int_data field.public static CXSourceLocation malloc()
CXSourceLocation instance allocated with memAlloc. The instance must be explicitly freed.public static CXSourceLocation calloc()
CXSourceLocation instance allocated with memCalloc. The instance must be explicitly freed.public static CXSourceLocation create()
CXSourceLocation instance allocated with BufferUtils.public static CXSourceLocation create(long address)
CXSourceLocation instance for the specified memory address.@Nullable public static CXSourceLocation createSafe(long address)
public static CXSourceLocation.Buffer malloc(int capacity)
CXSourceLocation.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXSourceLocation.Buffer calloc(int capacity)
CXSourceLocation.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXSourceLocation.Buffer create(int capacity)
CXSourceLocation.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXSourceLocation.Buffer create(long address, int capacity)
CXSourceLocation.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXSourceLocation.Buffer createSafe(long address, int capacity)
public static CXSourceLocation mallocStack()
CXSourceLocation instance allocated on the thread-local MemoryStack.public static CXSourceLocation callocStack()
CXSourceLocation instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXSourceLocation mallocStack(org.lwjgl.system.MemoryStack stack)
CXSourceLocation instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXSourceLocation callocStack(org.lwjgl.system.MemoryStack stack)
CXSourceLocation instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXSourceLocation.Buffer mallocStack(int capacity)
CXSourceLocation.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXSourceLocation.Buffer callocStack(int capacity)
CXSourceLocation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXSourceLocation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXSourceLocation.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXSourceLocation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXSourceLocation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static org.lwjgl.PointerBuffer nptr_data(long struct)
ptr_data().public static long nptr_data(long struct,
int index)
ptr_data.public static int nint_data(long struct)
int_data().Copyright LWJGL. All Rights Reserved. License terms.