Package org.lwjgl.llvm
Class CXSourceRange
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXSourceRange
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXSourceRange extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceIdentifies a half-open character range in the source code.Use
getRangeStartandgetRangeEndto retrieve the starting and end locations from a source range, respectively.Layout
struct CXSourceRange { void const * ptr_data[2]; unsigned begin_int_data; unsigned end_int_data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXSourceRange.BufferAn array ofCXSourceRangestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBEGIN_INT_DATA
END_INT_DATA
PTR_DATAThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXSourceRange(java.nio.ByteBuffer container)Creates aCXSourceRangeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intbegin_int_data()static CXSourceRangecalloc()Returns a newCXSourceRangeinstance allocated withmemCalloc.static CXSourceRange.Buffercalloc(int capacity)Returns a newCXSourceRange.Bufferinstance allocated withmemCalloc.static CXSourceRange.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXSourceRange.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXSourceRangecalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXSourceRangeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXSourceRangecallocStack()Deprecated.static CXSourceRange.BuffercallocStack(int capacity)Deprecated.static CXSourceRange.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceRangecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceRangecreate()Returns a newCXSourceRangeinstance allocated withBufferUtils.static CXSourceRange.Buffercreate(int capacity)Returns a newCXSourceRange.Bufferinstance allocated withBufferUtils.static CXSourceRangecreate(long address)Returns a newCXSourceRangeinstance for the specified memory address.static CXSourceRange.Buffercreate(long address, int capacity)Create aCXSourceRange.Bufferinstance at the specified memory.static CXSourceRangecreateSafe(long address)static CXSourceRange.BuffercreateSafe(long address, int capacity)intend_int_data()static CXSourceRangemalloc()Returns a newCXSourceRangeinstance allocated withmemAlloc.static CXSourceRange.Buffermalloc(int capacity)Returns a newCXSourceRange.Bufferinstance allocated withmemAlloc.static CXSourceRange.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXSourceRange.Bufferinstance allocated on the specifiedMemoryStack.static CXSourceRangemalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXSourceRangeinstance allocated on the specifiedMemoryStack.static CXSourceRangemallocStack()Deprecated.static CXSourceRange.BuffermallocStack(int capacity)Deprecated.static CXSourceRange.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXSourceRangemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnbegin_int_data(long struct)Unsafe version ofbegin_int_data().static intnend_int_data(long struct)Unsafe version ofend_int_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
-
CXSourceRange
public CXSourceRange(java.nio.ByteBuffer container)
Creates aCXSourceRangeinstance 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.
-
begin_int_data
public int begin_int_data()
- Returns:
- the value of the
begin_int_datafield.
-
end_int_data
public int end_int_data()
- Returns:
- the value of the
end_int_datafield.
-
malloc
public static CXSourceRange malloc()
Returns a newCXSourceRangeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXSourceRange calloc()
Returns a newCXSourceRangeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXSourceRange create()
Returns a newCXSourceRangeinstance allocated withBufferUtils.
-
create
public static CXSourceRange create(long address)
Returns a newCXSourceRangeinstance for the specified memory address.
-
createSafe
@Nullable public static CXSourceRange createSafe(long address)
-
malloc
public static CXSourceRange.Buffer malloc(int capacity)
Returns a newCXSourceRange.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXSourceRange.Buffer calloc(int capacity)
Returns a newCXSourceRange.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXSourceRange.Buffer create(int capacity)
Returns a newCXSourceRange.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXSourceRange.Buffer create(long address, int capacity)
Create aCXSourceRange.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXSourceRange.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXSourceRange mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceRange callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceRange mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceRange callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceRange.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXSourceRange.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXSourceRange.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 CXSourceRange.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXSourceRange malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceRangeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXSourceRange calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceRangeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXSourceRange.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceRange.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXSourceRange.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXSourceRange.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.
-
nbegin_int_data
public static int nbegin_int_data(long struct)
Unsafe version ofbegin_int_data().
-
nend_int_data
public static int nend_int_data(long struct)
Unsafe version ofend_int_data().
-
-