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.NativeResourceIdentifies a specific source location within a translation unit.Use
getExpansionLocationorgetSpellingLocationto 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 classCXSourceLocation.BufferAn array ofCXSourceLocationstructs.
-
Constructor Summary
Constructors Constructor Description CXSourceLocation(java.nio.ByteBuffer container)Creates aCXSourceLocationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CXSourceLocationcalloc()Returns a newCXSourceLocationinstance allocated withmemCalloc.static CXSourceLocation.Buffercalloc(int capacity)Returns a newCXSourceLocation.Bufferinstance allocated withmemCalloc.static CXSourceLocation.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXSourceLocation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXSourceLocationcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXSourceLocationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXSourceLocationcallocStack()Deprecated.static CXSourceLocation.BuffercallocStack(int capacity)Deprecated.static CXSourceLocation.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceLocationcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceLocationcreate()Returns a newCXSourceLocationinstance allocated withBufferUtils.static CXSourceLocation.Buffercreate(int capacity)Returns a newCXSourceLocation.Bufferinstance allocated withBufferUtils.static CXSourceLocationcreate(long address)Returns a newCXSourceLocationinstance for the specified memory address.static CXSourceLocation.Buffercreate(long address, int capacity)Create aCXSourceLocation.Bufferinstance at the specified memory.static CXSourceLocationcreateSafe(long address)static CXSourceLocation.BuffercreateSafe(long address, int capacity)intint_data()static CXSourceLocationmalloc()Returns a newCXSourceLocationinstance allocated withmemAlloc.static CXSourceLocation.Buffermalloc(int capacity)Returns a newCXSourceLocation.Bufferinstance allocated withmemAlloc.static CXSourceLocation.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXSourceLocation.Bufferinstance allocated on the specifiedMemoryStack.static CXSourceLocationmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXSourceLocationinstance allocated on the specifiedMemoryStack.static CXSourceLocationmallocStack()Deprecated.static CXSourceLocation.BuffermallocStack(int capacity)Deprecated.static CXSourceLocation.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceLocationmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnint_data(long struct)Unsafe version ofint_data().static org.lwjgl.PointerBuffernptr_data(long struct)Unsafe version ofptr_data().static longnptr_data(long struct, int index)Unsafe version ofptr_data.org.lwjgl.PointerBufferptr_data()longptr_data(int index)intsizeof()
-
-
-
Constructor Detail
-
CXSourceLocation
public CXSourceLocation(java.nio.ByteBuffer container)
Creates aCXSourceLocationinstance 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
-
ptr_data
public org.lwjgl.PointerBuffer ptr_data()
- Returns:
- a
PointerBufferview of theptr_datafield.
-
ptr_data
public long ptr_data(int index)
- Returns:
- the value at the specified index of the
ptr_datafield.
-
int_data
public int int_data()
- Returns:
- the value of the
int_datafield.
-
malloc
public static CXSourceLocation malloc()
Returns a newCXSourceLocationinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXSourceLocation calloc()
Returns a newCXSourceLocationinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXSourceLocation create()
Returns a newCXSourceLocationinstance allocated withBufferUtils.
-
create
public static CXSourceLocation create(long address)
Returns a newCXSourceLocationinstance for the specified memory address.
-
createSafe
@Nullable public static CXSourceLocation createSafe(long address)
-
malloc
public static CXSourceLocation.Buffer malloc(int capacity)
Returns a newCXSourceLocation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXSourceLocation.Buffer calloc(int capacity)
Returns a newCXSourceLocation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXSourceLocation.Buffer create(int capacity)
Returns a newCXSourceLocation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXSourceLocation.Buffer create(long address, int capacity)
Create aCXSourceLocation.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXSourceLocation.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXSourceLocation mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceLocation callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceLocation mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceLocation callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceLocation.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceLocation.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceLocation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceLocation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXSourceLocation malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXSourceLocation calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXSourceLocation.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXSourceLocation.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceLocation.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-