public class CXIdxLoc
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct CXIdxLoc {
void * ptr_data[2];
unsigned int_data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXIdxLoc.Buffer
An array of
CXIdxLoc 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 |
|---|
CXIdxLoc(java.nio.ByteBuffer container)
Creates a
CXIdxLoc instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXIdxLoc |
calloc()
Returns a new
CXIdxLoc instance allocated with memCalloc. |
static CXIdxLoc.Buffer |
calloc(int capacity)
Returns a new
CXIdxLoc.Buffer instance allocated with memCalloc. |
static CXIdxLoc |
callocStack()
Returns a new
CXIdxLoc instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXIdxLoc.Buffer |
callocStack(int capacity)
Returns a new
CXIdxLoc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXIdxLoc.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXIdxLoc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXIdxLoc |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXIdxLoc instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXIdxLoc |
create()
Returns a new
CXIdxLoc instance allocated with BufferUtils. |
static CXIdxLoc.Buffer |
create(int capacity)
Returns a new
CXIdxLoc.Buffer instance allocated with BufferUtils. |
static CXIdxLoc |
create(long address)
Returns a new
CXIdxLoc instance for the specified memory address. |
static CXIdxLoc.Buffer |
create(long address,
int capacity)
Create a
CXIdxLoc.Buffer instance at the specified memory. |
static CXIdxLoc |
createSafe(long address)
|
static CXIdxLoc.Buffer |
createSafe(long address,
int capacity)
|
int |
int_data()
Returns the value of the
int_data field. |
static CXIdxLoc |
malloc()
Returns a new
CXIdxLoc instance allocated with memAlloc. |
static CXIdxLoc.Buffer |
malloc(int capacity)
Returns a new
CXIdxLoc.Buffer instance allocated with memAlloc. |
static CXIdxLoc |
mallocStack()
Returns a new
CXIdxLoc instance allocated on the thread-local MemoryStack. |
static CXIdxLoc.Buffer |
mallocStack(int capacity)
Returns a new
CXIdxLoc.Buffer instance allocated on the thread-local MemoryStack. |
static CXIdxLoc.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXIdxLoc.Buffer instance allocated on the specified MemoryStack. |
static CXIdxLoc |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXIdxLoc 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 CXIdxLoc(java.nio.ByteBuffer container)
CXIdxLoc 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 CXIdxLoc malloc()
CXIdxLoc instance allocated with memAlloc. The instance must be explicitly freed.public static CXIdxLoc calloc()
CXIdxLoc instance allocated with memCalloc. The instance must be explicitly freed.public static CXIdxLoc create()
CXIdxLoc instance allocated with BufferUtils.public static CXIdxLoc create(long address)
CXIdxLoc instance for the specified memory address.@Nullable public static CXIdxLoc createSafe(long address)
public static CXIdxLoc.Buffer malloc(int capacity)
CXIdxLoc.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXIdxLoc.Buffer calloc(int capacity)
CXIdxLoc.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXIdxLoc.Buffer create(int capacity)
CXIdxLoc.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXIdxLoc.Buffer create(long address, int capacity)
CXIdxLoc.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXIdxLoc.Buffer createSafe(long address, int capacity)
public static CXIdxLoc mallocStack()
CXIdxLoc instance allocated on the thread-local MemoryStack.public static CXIdxLoc callocStack()
CXIdxLoc instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXIdxLoc mallocStack(org.lwjgl.system.MemoryStack stack)
CXIdxLoc instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXIdxLoc callocStack(org.lwjgl.system.MemoryStack stack)
CXIdxLoc instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXIdxLoc.Buffer mallocStack(int capacity)
CXIdxLoc.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXIdxLoc.Buffer callocStack(int capacity)
CXIdxLoc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXIdxLoc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXIdxLoc.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXIdxLoc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXIdxLoc.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.