public class CXSourceRange
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Use getRangeStart and getRangeEnd to retrieve the starting and end locations from a source range, respectively.
struct CXSourceRange {
void const * ptr_data[2];
unsigned begin_int_data;
unsigned end_int_data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXSourceRange.Buffer
An array of
CXSourceRange structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BEGIN_INT_DATA
The struct member offsets.
|
static int |
END_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 |
|---|
CXSourceRange(java.nio.ByteBuffer container)
Creates a
CXSourceRange instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
begin_int_data()
Returns the value of the
begin_int_data field. |
static CXSourceRange |
calloc()
Returns a new
CXSourceRange instance allocated with memCalloc. |
static CXSourceRange.Buffer |
calloc(int capacity)
Returns a new
CXSourceRange.Buffer instance allocated with memCalloc. |
static CXSourceRange |
callocStack()
Returns a new
CXSourceRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXSourceRange.Buffer |
callocStack(int capacity)
Returns a new
CXSourceRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXSourceRange.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXSourceRange |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceRange instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXSourceRange |
create()
Returns a new
CXSourceRange instance allocated with BufferUtils. |
static CXSourceRange.Buffer |
create(int capacity)
Returns a new
CXSourceRange.Buffer instance allocated with BufferUtils. |
static CXSourceRange |
create(long address)
Returns a new
CXSourceRange instance for the specified memory address. |
static CXSourceRange.Buffer |
create(long address,
int capacity)
Create a
CXSourceRange.Buffer instance at the specified memory. |
static CXSourceRange |
createSafe(long address)
|
static CXSourceRange.Buffer |
createSafe(long address,
int capacity)
|
int |
end_int_data()
Returns the value of the
end_int_data field. |
static CXSourceRange |
malloc()
Returns a new
CXSourceRange instance allocated with memAlloc. |
static CXSourceRange.Buffer |
malloc(int capacity)
Returns a new
CXSourceRange.Buffer instance allocated with memAlloc. |
static CXSourceRange |
mallocStack()
Returns a new
CXSourceRange instance allocated on the thread-local MemoryStack. |
static CXSourceRange.Buffer |
mallocStack(int capacity)
Returns a new
CXSourceRange.Buffer instance allocated on the thread-local MemoryStack. |
static CXSourceRange.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceRange.Buffer instance allocated on the specified MemoryStack. |
static CXSourceRange |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXSourceRange instance allocated on the specified MemoryStack. |
static int |
nbegin_int_data(long struct)
Unsafe version of
begin_int_data(). |
static int |
nend_int_data(long struct)
Unsafe version of
end_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 BEGIN_INT_DATA
public static final int END_INT_DATA
public CXSourceRange(java.nio.ByteBuffer container)
CXSourceRange 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 begin_int_data()
begin_int_data field.public int end_int_data()
end_int_data field.public static CXSourceRange malloc()
CXSourceRange instance allocated with memAlloc. The instance must be explicitly freed.public static CXSourceRange calloc()
CXSourceRange instance allocated with memCalloc. The instance must be explicitly freed.public static CXSourceRange create()
CXSourceRange instance allocated with BufferUtils.public static CXSourceRange create(long address)
CXSourceRange instance for the specified memory address.@Nullable public static CXSourceRange createSafe(long address)
public static CXSourceRange.Buffer malloc(int capacity)
CXSourceRange.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXSourceRange.Buffer calloc(int capacity)
CXSourceRange.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXSourceRange.Buffer create(int capacity)
CXSourceRange.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXSourceRange.Buffer create(long address, int capacity)
CXSourceRange.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXSourceRange.Buffer createSafe(long address, int capacity)
public static CXSourceRange mallocStack()
CXSourceRange instance allocated on the thread-local MemoryStack.public static CXSourceRange callocStack()
CXSourceRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXSourceRange mallocStack(org.lwjgl.system.MemoryStack stack)
CXSourceRange instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXSourceRange callocStack(org.lwjgl.system.MemoryStack stack)
CXSourceRange instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXSourceRange.Buffer mallocStack(int capacity)
CXSourceRange.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXSourceRange.Buffer callocStack(int capacity)
CXSourceRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXSourceRange.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXSourceRange.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXSourceRange.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXSourceRange.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 nbegin_int_data(long struct)
begin_int_data().public static int nend_int_data(long struct)
end_int_data().Copyright LWJGL. All Rights Reserved. License terms.